Created
September 6, 2013 01:05
-
-
Save MathRivest/6458280 to your computer and use it in GitHub Desktop.
Fullscreen background image scale animation
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
.fullscreenBgContainer{ | |
z-index: 1; | |
position: absolute; | |
bottom: 0; | |
left: 0; | |
right: 0; | |
top: 0; | |
background: { | |
repeat: no-repeat; | |
position: center center; | |
size: cover; | |
} | |
-webkit-transition: all 750ms ease-out; | |
transition: all 750ms ease-out; | |
//remove this class when image is loaded | |
&.scaled { | |
-webkit-transform: scale(1.02); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment