Create a Sick Horizontal Scroll Animation | GreenSock / JS

preview_player
Показать описание
-- Today, I'm going to show you how to create a sleek horizontal scrolling animation with the help of JavaScript and GSAP. Integrate this on your next project and you'll impress your parents, I guarantee it! :|

Thanks to CassieCodes from Greensock for helping me figure some of this stuff out!

Codepen demo:

0:00 - Intro
0:50 - HTML and CSS Overview
3:59 - JavaScript & GSAP
12:16 - Final result

Let's get started!

#javascript #frontend #uiux

- - - - - - - - - - - - - - - - - - - - - -

Subscribe for NEW VIDEOS!

^-Chat with me and others

- - - - - - - - - - - - - - - - - - - - - -

Come to my discord server or add me on social media and say Hi!
Рекомендации по теме
Комментарии
Автор

What other types of interactive examples would you like to see?

DesignCourse
Автор

what I always love about this kind of tutorials is that the video's lenght is about 15 minutes and it takes me like few days to apply it to my project hahaha
thanks for the work!

oliwia_haja
Автор

This is going to impress my grandma for sure

DataSet
Автор

Always love to see your work. Going to sign up for the advance course.

kashif_i
Автор

Awesome idea, thanks for the inspiration.

To avoid seeing a misalignment in the progress bar, even though the middle element is centered, or it even not reaching 100% at all, here is my solution.
Remove the progress bar animation completely and work with the onUpdate callback function in the scrollTrigger of scrollTween to couple the width with the animation progress:
----
...,
scrollTrigger: {
...,
onUpdate: (self) => {
mask.style.width = Math.min(self.progress * 100, 100) + "%";
}
}
----


Hope it helps

jan.k.
Автор

Bro i was trying to do it last week, wallah i luv you!!

meslzy
Автор

Thanks alot, been searching everywhere for this effect.

yusufhendricks
Автор

I learned a lot from your video. Thanks for your hard work and good explanation. Youre always the first address when i have to solve some problems.

SvenBledt
Автор

Justo estaba ocupando hacer esto hoy, 5 estrellas por el servicio 😎

cmnweb
Автор

So cool 😎 already bought your css course 😍 what i still don't know: how to add this to a wordpress site 🙃

ratzch
Автор

How to make this <svg> element with mask using Figma?

KarolinaZielińska-ge
Автор

Hi! I want to know that what if we want 6 sections hot manage that
xPercent: -100 * (sections.length - 1),
What values to change???

reyanarshad
Автор

how about to do vertical & horizontal fullpage scroll like in fullpage js horizontaly scroll but with GSAP?

Atractiondj
Автор

How much is the new advanced front end course gonna be

andeederek
Автор

How works one integrate this into WordPress?

SingaporeMathsAcademyUK
Автор

how to remove this subtitles scroller-start, end

dawidmarkiewicz
Автор

Great content as always but no offence but .. ayy .... ayy ... aaayyyy ...

tsarprince