baptistebriel / smooth-scrolling

smooth scrolling and parallax effects on scroll
MIT License
612 stars 75 forks source link

better css controls with native true/false #50

Closed baptistebriel closed 7 years ago

baptistebriel commented 7 years ago

I think it would be good to add a is-native / is-virtualscroll class on the body at the initialisation of smooth-scrolling.

This way we can have more control on the CSS applied on each case (i.e virtual-scroll needs overflow: hidden; on body, while native scrolling doesn't)