Created
October 30, 2012 20:06
-
-
Save spdustin/3982648 to your computer and use it in GitHub Desktop.
Featured Content 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
#sliderList li { | |
display: block; | |
width: 400px; | |
height: 200px; | |
margin: 0; | |
padding: 0; | |
position: absolute; | |
left: -400px; | |
top: 0; | |
opacity: 0; | |
z-index: 1; | |
transition: all linear 500ms; | |
} | |
#sliderList li:first-child { | |
left: 0; | |
opacity: 1; | |
} | |
#featuredContent { | |
position: relative; | |
overflow: hidden; | |
} | |
#featuredContent figure { | |
margin: 0; | |
} | |
#sliderList { | |
width: 400px; | |
height: 200px; | |
margin: 0; | |
padding: 0; | |
} | |
#featuredContent h1 { | |
text-indent: -9999px; | |
float: left; | |
} | |
#featuredContent figcaption { | |
position: absolute; | |
width: 380px; | |
bottom: 0; | |
padding: 5px 10px; | |
background: rgba(255,255,255,0.8); | |
} | |
#sliderLinks a { | |
text-decoration: none; | |
} | |
#sliderList li:target { | |
left: 0; | |
z-index: 9; | |
opacity: 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment