Skip to content

Instantly share code, notes, and snippets.

@Prinzhorn
Created June 17, 2013 12:35
Show Gist options
  • 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