JSFiddle - React, Tailwind, and code Playground
by lustre
HTML
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.6/animate.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.min.js"></script>
<script src="http://s.codepen.io/assets/libs/modernizr.js"></script>
<div id="top">
<img src="http://dev.miltonbayer.com/sites/all/themes/miltonbayer/images/logo-l.png" />
<div class="greenblock"></div>
<div class="darkblock"></div>
</div>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<div id="headAnimation">
<div class="hero green">
<img src="http://dev.miltonbayer.com/sites/all/themes/miltonbayer/images/logo-l.png" />
</div>
</div>
<div class="content">
<div class="group">
<section>
<p>Never in all their history have men been able truly to conceive of the world as one: a single sphere, a globe, having the qualities of a globe, a round earth in which all the directions eventually meet, in which there is no center because every point, or none, is center — an equal earth which all men occupy as equals. The airman's earth, if free men make it, will be truly round: a globe in practice, not in theory.</p>
</section>
<section class="image wow">
<img src="http://placekitten.com/500/340" />
</section>
</div>
</div>
</article>
</div>
CSS
/* Green Fade In */
@-webkit-keyframes greenFadeIn {
0% { background: #fff; }
100% { background: #c3d600; }
}
@-moz-keyframes greenFadeIn {
0% { background: #fff; }
100% { background: #c3d600; }
}
@-o-keyframes greenFadeIn {
0% { background: #fff; }
100% { background: #c3d600; }
}
@keyframes greenFadeIn {
0% { background: #fff; }
100% { background: #c3d600; }
}
body {
margin:0;
padding:0;
height:100%;
}
#top img {
position:fixed;
width:782px;
height:334px;
top:50%;
left:50%;
margin-top:-167px;
margin-left:-391px;
}
#top .greenblock{
width:100%;
height:100vh;
background:#c3d600;
-webkit-animation: greenFadeIn 3s ease-in 1;
-moz-animation: greenFadeIn 3s ease-in 1;
-o-animation: greenFadeIn 3s ease-in 1;
animation: greenFadeIn 3s ease-in 1;
}
#top .darkblock{
width:100%;
height:100vh;
background:#3b414f;
}
.js .wow {
opacity: 0;
transform: translateY(1em);
transition: all 0.5s 0.5s ease-out;
}
/* Wow.js puts in a "animated" class */
.js .animated {
opacity: 1;
transform: none;
}
#headAnimation{
background:#3b414f;
}
.hero {
background: #c3d600;
height: 100vh;
}
.hero img {
width:782px;
margin:0 auto;
}
.group {
display: flex;
}
section {
min-width: 46%;
margin: 1%;
padding: 1%;
}
img {
max-width: 80%;
margin: 2em;
}
.quote p {
font-size: 32px;
color: #aaa;
padding: 0.75em;
}
JavaScript
new WOW().init();