Skip to content

Instantly share code, notes, and snippets.

@rhostem
Last active November 20, 2016 14:13
Show Gist options
  • Save rhostem/9f8977d418e64c35fc4a75e9a8e8312d to your computer and use it in GitHub Desktop.
Save rhostem/9f8977d418e64c35fc4a75e9a8e8312d to your computer and use it in GitHub Desktop.
animtaion-clockwise.css - 90도씩 딜레이를 주고 회전하는 애니메이션
@keyframes clockwise {
0% { transform: rotate(0); }
10% { transform: rotate(90deg); }
25% { transform: rotate(90deg); }
35% { transform: rotate(180deg); }
50% { transform: rotate(180deg); }
60% { transform: rotate(270deg); }
75% { transform: rotate(270deg); }
85% { transform: rotate(360deg); }
100% { transform: rotate(360deg); }
}
icon {
animation-name: clockwise;
animation-duration: 4s;
animation-iteration-count: infinite;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment