Skip to content

Instantly share code, notes, and snippets.

@stevegrove
Forked from minhd/jQuery extends sliding.js
Last active December 11, 2015 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevegrove/4678759 to your computer and use it in GitHub Desktop.
Save stevegrove/4678759 to your computer and use it in GitHub Desktop.
jQuery.fn.extend({
slideRightShow: function(duration, callback) {
return this.each(function() {
$(this).show('slide', {direction: 'right'}, duration, callback);
});
},
slideLeftHide: function(duration, callback) {
return this.each(function() {
$(this).hide('slide', {direction: 'left'}, duration, callback);
});
},
slideRightHide: function(duration, callback) {
return this.each(function() {
$(this).hide('slide', {direction: 'right'}, duration, callback);
});
},
slideLeftShow: function(duration, callback) {
return this.each(function() {
$(this).show('slide', {direction: 'left'}, duration, callback);
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment