Created
          January 15, 2012 13:44 
        
      - 
      
- 
        Save kizu/1615901 to your computer and use it in GitHub Desktop. 
    Arc movement 
  
        
  
    
      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
    
  
  
    
  | /* Arc movement */ | |
| .wrapper { | |
| width: 500px; | |
| margin: 300px 0 0; | |
| transition: all 1s; | |
| transform-origin: 50% 50%; | |
| } | |
| .inner { | |
| display: inline-block; | |
| padding: 1em; | |
| transition: transform 1s; | |
| background: lime; | |
| } | |
| html:hover .wrapper { | |
| transform: rotate(180deg); | |
| } | |
| html:hover .inner { | |
| transform: rotate(-180deg); | |
| } | |
  
    
      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 class="wrapper"> | |
| <div class="inner">Hover me</div> | |
| </div> | 
  
    
      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
    
  
  
    
  | {"view":"split-vertical","prefixfree":"1","page":"css"} | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment