Parallax Effect


i have full screen bg hero image , want have fixed scroll effect instead of image being fixed moves alittle..  have been unable locate anything... ones have found dont work.

 

 

<!-- hero unit -->

<div id="hero-unit" class="hero-unit">

  <div id="hero-unit-content">

  <img src="content/images/ogo_white.png" class="logo2 img-responsive">

  <a class="button subdued-button alt-button" role="button" href="#">learn more</a>

  </div>

</div>

 

 

 

#hero-unit {   

    height: 100vh;   

}

 

.hero-unit {

    background: url(../images/backgrounds/hero-bg.jpg) no-repeat top center;

    background-color: #000;

    background-size: cover;

    -webkit-background-size: cover;

    -moz-background-size: cover;

    -o-background-size: cover;

}

 

#hero-unit-content {

    position: absolute;

    width: 100%;

    bottom: 0%;   

   

}

 

#hero-unit-content {

    background-color: #151515;

    padding-top: 10px;

    height: 40px;

    display: block;

    font-size: 12px;

    text-align:center;

    text-transform: uppercase;

    text-decoration: none;

}

without seeing full code, including js, hard you.

 

in meantime, have @ bootstrap parallax demo



More discussions in Dreamweaver support forum


adobe

Comments

Popular posts from this blog

Illustrator CS6 Ocurrío un error E/S en el archivo.

Why is os_ViewContainer running?

Animate - problem with duplicating scripts after loop