Answer the question
In order to leave comments, you need to log in
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
We open the site, open the debugger and look at the animation code. Here she is, on the screen. Good luck parsing.
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');
}
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question