Skip to content

Instantly share code, notes, and snippets.

@jayllellis
Last active February 22, 2023 23:45
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jayllellis/bcb7d7583bb4da65856c to your computer and use it in GitHub Desktop.
Save jayllellis/bcb7d7583bb4da65856c 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