Thank you for your interest and welcome!

We’ve just sent you an email! Check your inbox (and spam folder) and save our email so you don’t miss what’s next!

Meanwhile, rendez-vous here:

Exciting news! We've hit a huge milestone:
MWG now has 1,000 members! To celebrate it, we’re offering 15% off. Don’t miss out!

Use MILESTONE15 at checkout.
15% off until Sunday, Sept 14.

Get started

024
Opposite direction marquees

In this effect, we will infinitely scroll two phrases in opposite directions. As the user scrolls, the first phrase will disappear to reveal the second. Let’s see how to achieve this result!

HTML Structure

The structure is relatively simple here. Each phrase is contained within a container, which will remain pinned while the user scrolls.

<div class="pin-height">
    <div class="container">
        <div class="sentence sentence1">
            <p>Get your ticket now... Get your ticket now...</p>
        </div>
        <div class="sentence sentence2">
            <p>Get your ticket now... Get your ticket now...</p>
        </div>
    </div>
</div>

Join Made With Gsap to
unlock the full tutorial

Get access