051Vertical multi-track

For this effect, three images travel upward at different speeds while the user scrolls. Each time a card loops, it picks the next URL from a hidden list and lands on a new random horizontal position. Shall we wire it up? Let’s go!

HTML Structure

The markup for this effect is minimal. We start with a hidden gallery that preloads every image source, then three absolutely positioned img elements that our script will feed and animate.

<section class="mwg_effect051">
    <p class="scroll">Scroll</p>

    <div class="listMedias">
        <img class="listMedia" src="assets/medias/01.png" alt="">
        <img class="listMedia" src="assets/medias/02.png" alt="">
        ...
    </div>

    <img class="media media1" src="" alt="">
    <img class="media media2" src="" alt="">
    <img class="media media3" src="" alt="">
</section>

The listMedias div acts as a hidden pool of URLs. We never display these images directly; they just sit there so the browser preloads each file. The three .media elements below are the visible cards that will travel up the screen.

Become a member to unlock
the full effect
today.

Join now Join now

Discover the platform

See how the platform works: try Effect #000 for free.

Try it now Try it now

(No registration or credit card needed)