Episode 2: Amazing parallax scrolling effect on background image

preview_player
Показать описание

In this tutorial we are going to create an awesome parallax scrolling effect using css and javascript.

Don't forget to subscribe to the channel and click on the bell icon to be notified for the upcoming tutorials in this series.
Рекомендации по теме
Комментарии
Автор

Thank you for going into detail on the calculating parallax. So thrilled I came across this.

Christian-ctiu
Автор

Excellent content! Keep up the good work. I hope to use some of these in up-coming projects.

harbingerization
Автор

Great!!!! I was waiting for this one! Thanks!

fvgoya
Автор

Wonderful tutorial - thanks so much for making these.
just a quick heads up, after struggling for a while with getting my parallax to work I ended up just straight copying the code from the prototype but it still didn't work until i changed the '.querySelectorAll' to '.getElementByClassName' and the 'forEach' loop into a regular 'for' loop. I had to put another line of code inside the 'for' loop though: var parallax = parallaxes[i];

I have no idea why it wasn't working in the first place but if anyone has the same issue try those changes.

kirkradunz
Автор

Please don't forget to cover rotating or laterally moving something with scroll...like you showed in kontainer.com example in your part 1 video. Thanks!

nikhiltyagi