Posted injQuery / JavaScript

Add class on scroll jquery

Today, We want to share with you add class on scroll jquery.In this post we will show you add/remove class when scrolling over section / sticky sidebar, hear for Add/remove class with jquery based on vertical scroll? we will give you demo and example for implement.In this post, we will learn about Simple Jquery Scroll To Top with an example.

Add/remove class with jquery based on vertical scroll?

Example 1: index.html

    This is Pakainfo -

Add/remove class on scroll down and scroll up

Example 2:

//After scroll down add class box-hover

Example 3:
Add or remove class with JQuery based on vertical scroll

header { height: 50px }
header .menu a { height: 1.2em }
.small { height: 25px }
.small .menu a { height: 1em }

I hope you get an idea about add/remove class when scrolling over section.
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

I am Jaydeep Gondaliya , a software engineer, the founder and the person running Pakainfo. I'm a full-stack developer, entrepreneur and owner of I live in India and I love to write tutorials and tips that can help to other artisan, a Passionate Blogger, who love to share the informative content on PHP, JavaScript, jQuery, Laravel, CodeIgniter, VueJS, AngularJS and Bootstrap from the early stage.

Leave a Reply

Your email address will not be published. Required fields are marked *

We accept paid guest Posting on our Site : Guest Post Chat with Us On Skype