N
N
nomta2017-07-02 14:58:44
JavaScript
nomta, 2017-07-02 14:58:44

Animation on scroll: how to affect a fixed block?

Good day everyone! Such task:
There is a fixed menu block. When scrolling the page to a certain element, it should change its color. How to implement it?
Is there a js library (not jquery) that would solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nik, 2017-07-03
@nomta

https://github.com/Prinzhorn/skrollr
excellent library
here is an example with color https://codepen.io/FezVrasta/pen/lzxbj
and with a block here prinzhorn.github.io/skrollr/examples/anchor_target.html All
you have to do is unite

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question