In this effect, we’ll make a sentence scroll from right to left as the user scrolls. The letters will appear and disappear dynamically based on their position at the edges of the viewport.
To make it more visually interesting, we’ll arrange the letters along a sine wave that we can tweak. Doesn’t the result have a bit of a jazz vibe? Then let’s go—time to practice our scat singing skills!
HTML Structure
The structure is relatively simple. The sentence inside our container
will move from right to left while remaining visible within the viewport.
<section class="mwg_effect010">
<div class="container">
<p class="text">Shoo-ba-lah-dee, bop-ba-loo-bah. Skee-bop-a-dee!</p>
</div>
</section>