Skip to content

Instantly share code, notes, and snippets.

@rowe-morehouse
Forked from jayllellis/infinite-zoom.css
Created October 15, 2020 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rowe-morehouse/176a403d19597b9f618f792de626e8e0 to your computer and use it in GitHub Desktop.
Save rowe-morehouse/176a403d19597b9f618f792de626e8e0 to your computer and use it in GitHub Desktop.
Infinite slow zoom CSS animation
.infinite-zoom{
-webkit-animation: zoomSlow 60s infinite linear;
-moz-animation: zoomSlow 60s infinite linear;
animation: zoomSlow 60s infinite linear;
}
@-webkit-keyframes zoomSlow {
0% {
-moz-transform: scale(1);
-webkit-transform: scale(1);
transform: scale(1);
}
50% {
-moz-transform: scale(1.3) rotate(0.1deg);
-webkit-transform: scale(1.3) rotate(0.1deg);
transform: scale(1.3) rotate(0.1deg);
}
100% {
-moz-transform: scale(1);
-webkit-transform: scale(1);
transform: scale(1);
}
}
@-moz-keyframes zoomSlow {
0% {
-moz-transform: scale(1);
-webkit-transform: scale(1);
transform: scale(1);
}
50% {
-moz-transform: scale(1.3) rotate(0.1deg);
-webkit-transform: scale(1.3) rotate(0.1deg);
transform: scale(1.3) rotate(0.1deg);
}
100% {
-moz-transform: scale(1);
-webkit-transform: scale(1);
transform: scale(1);
}
}
keyframes zoomSlow {
0% {
-moz-transform: scale(1);
-webkit-transform: scale(1);
transform: scale(1);
}
50% {
-moz-transform: scale(1.3) rotate(0.1deg);
-webkit-transform: scale(1.3) rotate(0.1deg);
transform: scale(1.3) rotate(0.1deg);
}
100% {
-moz-transform: scale(1);
-webkit-transform: scale(1);
transform: scale(1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment