Display popup when scrolling

I'm using colorbox and wanted to know if you know any way to display the popup when the visitor is scrolling the site.

I know it's possible to display the popup when the page loads and to display the popup after X seconds. But that does not help me.

I saw some websites that display the popup when the visitor scrolls down the page.

How to do it?

Answers:

Answer

You should check out the jQuery Waypoints plugin

Answer

You can use something like this:

$(window).scroll(function() {
   //open popup
});

The scroll event will call whenever the user scrolls.

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.