Created
February 7, 2018 16:43
-
-
Save Padilo300/cdbf47bc4c406925c9776e35e5a7c566 to your computer and use it in GitHub Desktop.
анимированные шестерни css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background: #000; | |
} | |
i { | |
display: block; | |
position: absolute; | |
width: 30px; | |
height: 30px; | |
top: 30px; | |
left: 30px; | |
background: url(http://i.imgur.com/lOBxb.png); | |
-webkit-animation: barrelRoll 2s infinite linear; | |
-webkit-animation-play-state: paused; | |
} | |
i:last-of-type { | |
top: 22px; | |
left: 56px; | |
-webkit-animation-name: invertBarrelRoll; | |
} | |
div:hover > i { | |
-webkit-animation-play-state: running; | |
} | |
@-webkit-keyframes barrelRoll { | |
0% { -webkit-transform: rotate(0deg); } | |
100% { -webkit-transform: rotate(360deg); } | |
} | |
@-webkit-keyframes invertBarrelRoll { | |
0% { -webkit-transform: rotate(0deg); } | |
100% { -webkit-transform: rotate(-360deg); } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<i></i><i></i> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment