Skip to content

Instantly share code, notes, and snippets.

@Prinzhorn
Created June 17, 2013 12:35
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Prinzhorn/5796546 to your computer and use it in GitHub Desktop.
Save Prinzhorn/5796546 to your computer and use it in GitHub Desktop.
Tiny jQuery plugin which makes refreshing elements a breeze.
//Enlarge all the bacon.
$('.bacon').height(10000).refresh();
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