I have created an animation for HTML/CSS3 using keyframes.
The animation is of an icon that is supposed to rotate and scale around its centre point.
The animation works in Chrome, but in Safari it doesn't properly translate until the end of the animation.
Here it is – snapping into position – in safari:
Here it is – smoothly animating into position – in chrome:
Here is the animation CSS:
@keyframes icon-animation {
0% {
left: 188.5px;
top: 187.5px;
transform: translate(-50%, -50%) rotate(-45deg);
transform-origin: 50% 50%;
width: 286.84px;
height: 233.81px;
}
16.6667% {
transform: translate(-50%, -50%) rotate(-45deg);
transform-origin: 50% 50%;
}
50% {
left: 188px;
top: 188.5px;
}
66.6667% {
transform: translate(-50%, -50%) rotate(0deg);
transform-origin: 50% 50%;
width: 200px;
height: 163px;
}
100% {
left: 188px;
top: 188.5px;
transform: translate(-50%, -50%) rotate(0deg);
transform-origin: 50% 50%;
width: 200px;
height: 163px;
}
}
The HTML and Default CSS are long-ish so I've created a codepen example, which can be found here:


