|
*, *:before, *:after{ box-sizing: border-box; } |
|
|
|
html{ min-height: 100%; } |
|
|
|
body{ |
|
font-size: 14px; font-family: 'Source Sans Pro', sans-serif; |
|
font-weight: 300; margin: 20px; |
|
height: 2000px; |
|
background: linear-gradient(to left top, #F5A1D5 0%, #CDD3E9 100%); |
|
} |
|
|
|
h1, h2, h3, h4, h5, h6, p{ font-weight: 300; margin: 0; padding: 0; } |
|
|
|
header.hero{ |
|
background: rgba(255, 255, 255, 0.6); |
|
text-align: center; padding: 20px 0; |
|
border-bottom: 4px solid rgba(255, 255, 255, 0.6); |
|
h1{ |
|
font-size: 3em; |
|
color: #555; |
|
margin: 0 0 5px; |
|
} |
|
p{} |
|
margin: 0 0 20px; |
|
} |
|
|
|
hr{ border: 0; border-top: 1px solid rgba(255, 255, 255, 0.6); padding: 0 0 20px; } |
|
|
|
ul.cards{ |
|
width: 660px; margin: 0 auto 20px; |
|
height: 300px; |
|
list-style-type: none; |
|
position: relative; |
|
padding: 20px 0; |
|
cursor: pointer; |
|
li.title{ margin: 0 0 20px; |
|
h2{ font-weight: 700; } |
|
} |
|
li.card{ |
|
background: #FFF; overflow: hidden; |
|
height: 200px; width: 200px; |
|
border-radius: 10px; |
|
position: absolute; left: 0px; |
|
box-shadow: 1px 2px 2px 0 #aaa; |
|
transition: all 0.4s cubic-bezier(.63,.15,.03,1.12); |
|
img{ |
|
max-width: 100%; height: auto; |
|
} |
|
div.content{ |
|
padding: 5px 10px; |
|
h1{ |
|
|
|
} |
|
p{ |
|
|
|
} |
|
} |
|
|
|
&.card-1{ |
|
z-index: 10; transform: rotateZ(-2deg); |
|
} |
|
&.card-2{ |
|
z-index: 9; transform: rotateZ(-7deg); |
|
transition-delay: 0.05s; |
|
} |
|
&.card-3{ |
|
z-index: 8; transform: rotateZ(5deg); |
|
transition-delay: 0.1s; |
|
} |
|
} |
|
|
|
&.transition{ |
|
li.card{ |
|
transform: rotateZ(0deg); |
|
&.card-1{ |
|
left: 440px; |
|
} |
|
|
|
&.card-2{ |
|
left: 220px; |
|
} |
|
|
|
&.card-3{ |
|
} |
|
} |
|
} |
|
} |
|
|
|
ul.card-stacks{ |
|
width: 660px; |
|
list-style-type: none; margin: 0 auto 20px; padding: 0; |
|
position: relative; |
|
cursor: pointer; |
|
height: 700px; |
|
li.title{ margin: 0 0 20px; |
|
h2{ font-weight: 700; } |
|
} |
|
li.stack{ |
|
position: absolute; |
|
left: 0px; |
|
transition: all 0.4s cubic-bezier(.63,.15,.03,1.02); |
|
ul.cards-down{ |
|
position: relative; |
|
margin: 0 0 20px; padding: 20px; |
|
list-style-type: none; margin: 0; padding: 0; |
|
li.card{ |
|
transition: all 0.4s cubic-bezier(.63,.15,.03,1.22); |
|
left: 0px; |
|
transition-delay: 0.4s; |
|
background: #FFF; overflow: hidden; |
|
height: 200px; width: 200px; |
|
border-radius: 10px; |
|
position: absolute; top: 0px; |
|
box-shadow: 1px 2px 2px 0 #aaa; |
|
img{ |
|
max-width: 100%; height: auto; |
|
} |
|
div.content{ |
|
padding: 5px 10px; |
|
h1{ |
|
|
|
} |
|
p{ |
|
|
|
} |
|
} |
|
|
|
&.card-1{ |
|
z-index: 10; transform: rotateZ(-2deg); |
|
} |
|
&.card-2{ |
|
z-index: 9; transform: rotateZ(-7deg); |
|
} |
|
&.card-3{ |
|
z-index: 8; transform: rotateZ(5deg); |
|
} |
|
} |
|
} |
|
} |
|
|
|
&.transition{ |
|
li.stack{ |
|
&.stack-1{ left: 0px; } |
|
&.stack-2{ left: 220px; } |
|
&.stack-3{ left: 440px; } |
|
ul.cards-down{ |
|
li.card{ |
|
transform: rotateZ(0deg); |
|
&.card-1{ |
|
top: 440px; |
|
} |
|
&.card-2{ |
|
top: 220px; |
|
} |
|
&.card-3{ |
|
} |
|
} |
|
} |
|
} |
|
} |
|
} |
|
|
|
ul.cards-split{ |
|
width: 660px; |
|
height: 280px; |
|
list-style-type: none; |
|
position: relative; |
|
margin: 0 auto 20px; |
|
padding: 20px; |
|
cursor: pointer; |
|
li.title{ margin: 0 0 20px; |
|
h2{ font-weight: 700; } |
|
} |
|
li.card{ |
|
background: #FFF; overflow: hidden; |
|
height: 200px; width: 200px; |
|
border-radius: 10px; |
|
position: absolute; left: 220px; |
|
box-shadow: 1px 2px 2px 0 #aaa; |
|
transition: all 0.4s cubic-bezier(.63,.15,.03,1.12); |
|
img{ |
|
max-width: 100%; height: auto; |
|
} |
|
div.content{ |
|
padding: 5px 10px; |
|
h1{ |
|
|
|
} |
|
p{ |
|
|
|
} |
|
} |
|
|
|
&.card-1{ |
|
z-index: 10; transform: rotateZ(-2deg); |
|
} |
|
&.card-2{ |
|
z-index: 9; transform: rotateZ(-7deg); |
|
transition-delay: 0.05s; |
|
} |
|
&.card-3{ |
|
z-index: 8; transform: rotateZ(5deg); |
|
transition-delay: 0.1s; |
|
} |
|
} |
|
|
|
&.transition{ |
|
li.card{ |
|
transform: rotateZ(0deg); |
|
&.card-1{ |
|
left: 0px; |
|
} |
|
|
|
&.card-2{ |
|
left: 440px; |
|
} |
|
|
|
&.card-3{ |
|
left: 220px; |
|
} |
|
} |
|
} |
|
} |
|
|
|
|
|
ul.cards-split-delay{ |
|
width: 660px; |
|
height: 280px; |
|
list-style-type: none; |
|
position: relative; |
|
margin: 0 auto 20px; padding: 20px; |
|
cursor: pointer; |
|
li.title{ margin: 0 0 20px; |
|
h2{ font-weight: 700; } |
|
} |
|
li.card{ |
|
background: #FFF; overflow: hidden; |
|
height: 200px; width: 200px; |
|
border-radius: 10px; |
|
position: absolute; left: 220px; |
|
box-shadow: 1px 2px 2px 0 #aaa; |
|
transition: all 0.4s cubic-bezier(.63,.15,.03,1.12); |
|
img{ |
|
max-width: 100%; height: auto; |
|
} |
|
div.content{ |
|
padding: 5px 10px; |
|
h1{ |
|
|
|
} |
|
p{ |
|
|
|
} |
|
} |
|
|
|
&.card-1{ |
|
z-index: 10; transform: rotateZ(-2deg); |
|
} |
|
&.card-2{ |
|
z-index: 9; transform: rotateZ(-7deg); |
|
transition-delay: 0.6s; |
|
} |
|
&.card-3{ |
|
z-index: 8; transform: rotateZ(5deg); |
|
transition-delay: 0s; |
|
} |
|
} |
|
|
|
&.transition{ |
|
li.card{ |
|
transform: rotateZ(0deg); |
|
&.card-1{ |
|
left: 0px; |
|
} |
|
|
|
&.card-2{ |
|
left: 440px; |
|
} |
|
|
|
&.card-3{ |
|
left: 220px; |
|
transition-delay: 0.6s; |
|
} |
|
} |
|
} |
|
} |