I
I
iliketransmusic2017-02-02 14:06:52
JavaScript
iliketransmusic, 2017-02-02 14:06:52

What plugin to use for animation?

Tell me the animation plugin that is used in the header of this site www.genevaclinic.com.ua/services/aligning-the-teet...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Polin, 2017-02-02
@iliketransmusic

We open the site, open the debugger and look at the animation code. Here she is, on the screen. Good luck parsing.
e5fbee0064fe4f63b7a403cc80d0220d.png

A
Alina Brann, 2017-02-02
@alina_ivanovna

This can be done with a simple script that, when scrolling a certain number of pixels, adds a class to the header, and removes it when it returns. And you can already paint whatever styles you like)

jQuery(window).scroll(function() { 
    var the_top = jQuery(document).scrollTop();
    if (the_top > 100) { 
        jQuery('header').addClass('your-class');
    }
    else {
        jQuery('header').removeClass('your-class');
    }
});

PS "the_top > 100" is the number of pixels from the top of the window.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question