-
-
Save Leikam/5508202 to your computer and use it in GitHub Desktop.
Polymorph
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 { | |
width: 200px; | |
height: 200px; | |
margin: auto; | |
overflow: hidden; | |
} | |
#e { | |
background-color: lightblue; | |
transform: rotate(-65deg); | |
animation: rotateCCW 10s linear infinite; | |
} | |
#e:hover { background-color: khaki} | |
#w { | |
transform: rotate(45deg); | |
animation: rotateCW 9s linear infinite; | |
} | |
#q { | |
transform: rotate(30deg); | |
margin-top: 80px | |
} | |
@keyframes rotateCW { 100% {transform: rotate(314deg)} } | |
@keyframes rotateCCW { 100% {transform: rotate(-424deg)} } |
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 id='q'> | |
<div id='w'> | |
<div id='e'></div> | |
</div> | |
</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":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment