E
E
enchikiben2018-02-12 07:36:38
JavaScript
enchikiben, 2018-02-12 07:36:38

How to make a "peculiar" parallax?

Good morning!
Tell me how to program an unusual parallax effect. The bottom line is this, there is a block in a random place on the page 700 pixels high, 100% wide, position relative. This block has several other square blocks of maximum 80 by 80 pixels with absolute positioning. How can I make it so that when scrolling the page when this large block is visible, the blocks inside it float vertically within certain limits (let's say 50 pixels up and 50 down)? Google and ready-made plugins cannot do this, or I did not find it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maxsnw, 2018-02-12
@maxsnw

normal parallax, in the element attributes you set values ​​from and to and everything floats when scrolling as it should https://github.com/wagerfield/parallax
, just like any other plugin.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question