show or hide div depending on scoll position
-
Hi,
I’m using your plugin to pull up my social icons (#advanced_floating_content_637) at the end of each post which works great. But now the social icons are already visible when the page is loaded. Before using the plugin, the social icons would only become visible upon scrolling down (after 350px). Is there any way to call the .scrollTop() function of the floating content? I tried adding this:
$(document).scroll(function() { var y = $(this).scrollTop(); if (y > 350) { $("#advanced_floating_content_637").fadeIn(); } else { $("#advanced_floating_content_637").fadeOut(); } });
to no avail. Any ideas on how I could achieve that the element fades in after scrolling down? Best, MP
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘show or hide div depending on scoll position’ is closed to new replies.