black-cat
Version:
Um framework resposivo, com uma coleção de componentes flat feitos com HTML, CSS, Javascript.
6 lines • 417 B
JavaScript
/*!
* BlackCat v1.0.0 (http://getblackcat.com.br)
* Copyright 2015 Two Sheep.
* Licensed under MIT (https://github.com/TwoSheep/blackcat/master/LICENSE)
*/
$(document).ready(function(){var t=500,o=150,n=800;$(window).scroll(function(){$(this).scrollTop()>t?$("#top-button").fadeIn(o):$("#top-button").fadeOut(o)}),$("#top-button").click(function(t){t.preventDefault(),$("html, body").animate({scrollTop:0},n)})});