-
-
Save SilentImp/9787052 to your computer and use it in GitHub Desktop.
Анимация по hover (правильная)
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
/** | |
* Анимация по hover (правильная) | |
*/ | |
div { | |
width: 9em; | |
padding: .6em 1em; | |
margin: 2em auto; | |
background: yellowgreen; | |
animation: spin 1s linear infinite; | |
animation-play-state: paused; | |
} | |
@keyframes spin { | |
to { | |
transform: rotate(1turn); | |
} | |
} | |
div:hover { | |
animation-play-state: running; | |
} |
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 ontouchstart="">Наведи курсор и посмотри как я кручусь!</div> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment