Create a gist now

Instantly share code, notes, and snippets.

@ygkn /file0.html
Last active May 8, 2017

What would you like to do?
【ハッカソン/キャンプに】 Web で最小の時間でちょっと「おっ」ってさせる小ネタ ref:
new SweetScroll({
trigger: "[data-scroll]",
afterScroll(toScroll, trigger){
location.hash = trigger.hash.slice(1)}
<a href="#main" data-scroll>メイン</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment