Created
          April 14, 2014 09:01 
        
      - 
      
 - 
        
Save rianrietveld/10629873 to your computer and use it in GitHub Desktop.  
    Changing a non-background image on hover with CSS
  
        
  
    
      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
    
  
  
    
  | <a href="https://twitter.com/RianRietveld"><img src="[email protected]" alt="Follow me on Twitter"></a> | 
  
    
      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
    
  
  
    
  | a { | |
| position:relative; | |
| display: block; | |
| height: 30px; | |
| width: 245px; | |
| overflow: hidden; | |
| } | |
| a img { | |
| position:absolute; | |
| left:0px; | |
| top:0px; | |
| } | |
| a:hover img { | |
| top: -30px; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment