Last active
August 29, 2015 14:03
-
-
Save anikets/6b6347a4b9338e8bd630 to your computer and use it in GitHub Desktop.
Styling for Jalousie Window
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
body { | |
perspective: 1000px; | |
-webkit-perspective: 1000px; | |
} | |
.window { | |
background-image: url( 'images/waterscape.JPG' ); | |
background-position: center center; | |
background-size: cover; | |
border: solid 50px brown; | |
border-image: url('images/dark_wood.png') 25% repeat; | |
box-shadow: 3px 3px 10px rgba(0,0,0,0.5); | |
backface-visibility: visible; | |
perspective-origin: 150% 150%; | |
transform-style: preserve-3d; | |
-webkit-backface-visibility: visible; | |
-webkit-perspective-origin: 150% 150%; | |
-webkit-transform-style: preserve-3d; | |
} | |
.pane { | |
transform: rotateX( 35deg ); | |
-webkit-transform: rotateX( 35deg ); | |
font-size: 3rem; | |
line-height: 6rem; | |
border: solid 1px #ccc; | |
text-align: center; | |
background: linear-gradient(rgba(255,255,255,1),rgba(255,255,255,0.5)); | |
transition: all 0.2s ease-out; | |
-webkit-transition: all 0.2s ease-out; | |
cursor: pointer; | |
} | |
.pane:hover { | |
background: linear-gradient(rgba(255,255,255,0.5),rgba(255,255,255,0.5)); | |
transform: rotateX( 0deg ); | |
-webkit-transform: rotateX( 0deg ); | |
box-shadow: 0 0px 5px rgba(0,0,0,0.2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment