Created
March 13, 2017 14:38
-
-
Save fearrr/06dc7776f931169f39df07f7c1484187 to your computer and use it in GitHub Desktop.
Revisions
-
fearrr created this gist
Mar 13, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ var $scrollingDiv = $("#scrollingDiv"); $(window).scroll(function(){ var $sT = $(window).scrollTop(); $scrollingDiv .stop() .animate({"marginTop" : ($sT + 30) + "px"}, "slow"); });