Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- $(window).scroll(function(){
- if ($(this).scrollTop() > 100){
- $('#ir-arriba').fadeIn('1000');
- }
- else
- {
- $('#ir-arriba').fadeOut('1000');
- }
- });
- $('#ir-arriba').click(function(){
- $('body, html').animate({
- scrollTop:0
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement