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: http://qiita.com/ygkn/items/03cb8ba5c54058103c49
<script>
new SweetScroll({
trigger: "[data-scroll]",
afterScroll(toScroll, trigger){
location.hash = trigger.hash.slice(1)}
});
</script>
<a href="#main" data-scroll>メイン</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment