Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #849426

    raeleewp
    Participant

    Hi
    I am trying to recreate the fade in effect that the scroll to top anchor has (fade in from bottom). But I am not sure how to and so far, I can only make it fade in and fade out.

    How do I get the fade in from bottom effect?

    My current code:

    jQuery(document).ready(function($) {
    	$(".go-to-cart").hide();
    	
    	$(function () {
    		$(window).scroll(function () {
    			if ($(this).scrollTop() > 10) {
    				$('.go-to-cart').fadeIn();
    			} else {
    				$('.go-to-cart').fadeOut();
    			}
    		});
    	});
    });

    Thank you.

    #849509

    Paul R
    Moderator