Created
June 17, 2013 12:35
-
-
Save Prinzhorn/5796546 to your computer and use it in GitHub Desktop.
Tiny jQuery plugin which makes refreshing elements a breeze.
This file contains 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 characters
//Enlarge all the bacon. | |
$('.bacon').height(10000).refresh(); |
This file contains 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 characters
jQuery.fn.refresh = function() { | |
var s = skrollr.get(); | |
if(s) { | |
s.refresh(this); | |
} | |
return this; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment