A
A
Alexey Orlov2018-05-22 11:07:31
css
Alexey Orlov, 2018-05-22 11:07:31

Background animation on scroll?

There is a PSD template, the background (throughout the entire LandingPage) is drawn on it in the form of bubbles, some of the bubbles should move up when scrolling, and some should move down. With what tools or libraries can this be done? The whole problem is that how to separate the bubbles that move up and the bubbles that move down, if the background, roughly speaking, is the same. Cut for each bubble?)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2018-05-22
@Hardjuice

The effect you're looking for is called parallax, there are a lot of such libraries on the Internet, for example, skrollr . It is not necessary to cut out each bubble, it is enough to create 2-3 layers with bubbles that will move at different speeds relative to each other.

T
TheRevan, 2018-05-22
@TheRevan

Yes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question