JavaScript - - By Sam Deering

javascript catch top scroll trigger

Quick javascript snippet to catch top scroll trigger.

var wintop = $(window).scrollTop(), docheight = $(document).height(), winheight = $(window).height();
((wintop/(docheight-winheight)) == 0) //top scroll trigger
Sponsors