B
B
Bongie2018-12-21 16:14:42
Python
Bongie, 2018-12-21 16:14:42

How is it created, and is it difficult to create an Onscroll animation?

Like here - scrollmagic.io
Where scrolling to a certain place starts the animation of some element

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lem_prod, 2016-02-23
@Timebird

well , i is an iteration, and where does j come from?

N
nvdfxx, 2018-12-21
@nvdfxx

$(window).on('scroll', function() {
    if($('html, body').scrollTop() > какое-то число пикселей от верха страницы) {
        //анимация
    }
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question