How to disable scrolling on body?

Sell Online With Shopify
Trusted by millions of businesses worldwide
For a limited time, sign up for a free trial and enjoy 3 months of Shopify for $1/month on select plans — offer ends Aug 25.

What’s the best way to prevent the body tag scrolling. The easiest way is a simple CSS snippet:

And you must add this class (disable-scrolling) into body tag.

Demo

You may also like...

Leave a Reply

Your email address will not be published.