Created
December 23, 2012 04:54
-
-
Save lukelex/4362032 to your computer and use it in GitHub Desktop.
CSS3 rotate transitions
This file contains hidden or 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.exampletransitione { | |
| width: 500px; | |
| height: 60px; | |
| margin: 20px 0; | |
| } | |
| div.exampletransitione div.transition { | |
| width: 20px; | |
| height: 20px; | |
| background-color: #ED8029; | |
| color: #fff; | |
| padding: 10px; | |
| border-radius: 5px; | |
| margin-left: 0; | |
| -webkit-transition: 3s linear; | |
| -moz-transition: 3s linear; | |
| -o-transition: 3s linear; | |
| -ms-transition: 3s linear; | |
| transition: 3s linear; | |
| } | |
| div.exampletransitione:hover div.transition { | |
| width: 50px; | |
| height: 50px; | |
| margin-left: 400px; | |
| -webkit-transform:rotate(360deg); | |
| -moz-transform:rotate(360deg); | |
| -o-transform:rotate(360deg); | |
| -ms-transform:rotate(360deg); | |
| transform:rotate(360deg); | |
| -moz-box-shadow: -5px -5px 5px #888; | |
| -webkit-box-shadow: -5px -5px 5px #888; | |
| box-shadow: -5px -5px 5px #888; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment