Skip to content

Instantly share code, notes, and snippets.

@ironfroggy
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save ironfroggy/9278971 to your computer and use it in GitHub Desktop.

Select an option

Save ironfroggy/9278971 to your computer and use it in GitHub Desktop.
@-webkit-keyframes sway
{
from {-webkit-transform: rotate(-10deg);}
to {-webkit-transform: rotate(10deg);}
}
@-moz-keyframes sway
{
from {-moz-transform: rotate(-10deg);}
to {-moz-transform: rotate(10deg);}
}
@keyframes sway
{
from {transform: rotate(-10deg);}
to {transform: rotate(10deg);}
}
img {
animation: sway 2s linear 5s infinite alternate;
-moz-animation: sway 2s linear 5s infinite alternate;
-webkit-animation: sway 2s linear 5s infinite alternate;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment