Having trouble getting the icon dog to appear correctly in this parallax effect. I want the full body of the dog icon to be displayed over the section, but I'm having no luck so far. Please see my code below and let me know if there are any corrections needed. Thank you.
html, body {
height: 100%;
}
body {
background: #f6f6f6;
margin: 0;
padding: 0;
}
#content {
position: relative;
}
.Parallax {
position: relative;
z-index: 2;
overflow: hidden;
width: 90%;
padding: 5%;
height: 600px;
}
.Parallax:before {
content: ' ';
position: fixed;
top: 0;
left: 0;
z-index: -1;
width: 100%;
height: 100%;
background-color: red;
background-position: center top;
background-repeat: no-repeat;
background-size: cover;
will-change: transform;
}
.Parallax h1 {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
color: #fff;
width: 50%;
height: 1em;
text-align: center;
z-index: 2;
}
p{
color: #fff;
}
.Parallax-image-1:before {
background-image: url(https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcTqgknPHfXngK5Rm8foHqsR-K5J5yAKa-njp2XC5cGCjtmRo__KEw);
}
.Parallax-image-2:before {
background-image: url(https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcSwu_ZX03m-x1IOFgD38wHyuHkXbwSizX7PmHpW5phV3pQpoNqIpQ);
}
.imgoverflow{
height: 200px;
margin-top: -30vmin;
}
<div id="content">
<section class="Parallax Parallax-image-1">
<h1>Title Text</h1>
</section>
<section class="Parallax">
<img src="http://www.clipartbest.com/cliparts/ecM/d94/ecMd945ei.png" height="300px" class="imgoverflow">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</section>
<section class="Parallax Parallax-image-2">
<h1>Title Text</h1>
</section>
<section class="Parallax">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</section>
</div>