THE EASIEST WAY TO ADD SMOOTH SCROLLING TO YOUR WEBSITE WITH JAVASCRIPT

preview_player
Показать описание
It's easy to add smooth scrolling to your existing website using JavaScript. This can be done by using a range of methods - covered in this video include scrolling an element into view, a specific position on the page or relative to the current position.

For your reference, check this out:

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

#dcode #javascript
Рекомендации по теме
Комментарии
Автор

I learn so many new tricks from you pls dont ever stop ❤❤ I watch all the ads so you don’t have ever to work again

Tony.Nguyen
Автор

this small piece of code is very useful...thank you very much for this

TomasMisura
Автор

Mine doesn't smoothly scroll. Do I have to do that hack in the Chrome flags? This seems to be a widespread issue so I'm curious how you're doing it.

andrethomas
Автор

No! This is a BAD video/advice/whatever. You don't want to steal a SYSTEM scroll. If you want a macOS scroll feel - buy a Mac, but don't steal the native and give the user this shitty parody.

almazmusic