A Pen by Alexander Zizzo on CodePen.
Created
July 1, 2014 19:48
-
-
Save anonymous/e52ef7d2353abf0e6335 to your computer and use it in GitHub Desktop.
A Pen by Alexander Zizzo.
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
<div id="wrap"> | |
<div id="hero"> | |
<div id="rainbow"></div> | |
</div> | |
<div id="content"> | |
<div class="inner"> | |
<h1>Content here</h1> | |
</div> | |
</div> | |
</div> |
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
@import "compass/css3"; | |
body { padding:0; margin:0; background-color: #f1f0e8; } | |
*, *:before, *:after { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
#hero { | |
position:relative; | |
z-index:0; | |
background-image:url('http://i.imgur.com/AcK2jrV.jpg'); | |
background-repeat:no-repeat; | |
background-size:cover; | |
height:1450px; | |
width:100%; | |
background-attachment:fixed; | |
overflow-x:hidden; | |
overflow-y:hidden; | |
} | |
#rainbow { | |
position:absolute; | |
left:0;bottom:-200px; | |
z-index:10; | |
width: 100%; | |
height: 1000px; | |
overflow-y:hidden; | |
overflow-x:hidden; | |
&:after { | |
z-index:10; | |
content:''; | |
position:absolute;left:-10%;top:320px; | |
width:150%;height:190px; | |
background-image:url('http://i.imgur.com/Bnqh7TP.jpg'); | |
background-repeat: repeat-x; | |
background-size: auto auto; | |
background-position:0 10px; | |
@include transform(rotate(-15deg)); | |
//background-color:#f1f0e8; | |
} | |
&:before { | |
z-index:1; | |
content:''; | |
position:absolute;left:-10%;bottom:-200px; | |
width:150%;height:700px; | |
background-color:#f1f0e8; | |
//background-color:red; | |
@include transform(rotate(-15deg)); | |
} | |
} | |
#content { | |
position:relative; | |
width:100%; | |
height:1100px; | |
background-color:#f1f0e8; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment