https://github.com/kswedberg/jquery-smooth-scroll
GitHub - kswedberg/jquery-smooth-scroll: Automatically make same-page links scroll smoothly
Automatically make same-page links scroll smoothly - GitHub - kswedberg/jquery-smooth-scroll: Automatically make same-page links scroll smoothly
github.com
<script src="https://cdn.statically.io/gh/kswedberg/jquery-smooth-scroll/3948290d/jquery.smooth-scroll.min.js"></script>
// smooth scroll
$('a').click(function(event) {
event.preventDefault();
var link = this;
$.smoothScroll({
scrollTarget: link.hash
});
});
'Open Source' 카테고리의 다른 글
ai가 360도 배경 생성해주는 사이트 (0) | 2023.05.27 |
---|---|
lottiefiles, 에펙 모션을 벡터로 웹에서 가볍게 사용하기 (0) | 2023.05.03 |
AI 음악 생성 사이트, Soundraw (0) | 2023.03.24 |
3D Real Glassmorphism, Vanilla-tilt (0) | 2023.03.20 |
Typed plugin (0) | 2023.03.19 |