Posted By

marcio on 01/29/10


Tagged

javascript jquery effects fade slide Animations


Versions (?)

SlideFade en jQuery


 / Published in: jQuery
 

  1. jQuery.fn.slideFadeToggle = function(speed, easing, callback) {
  2. return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);
  3. };
  4.  
  5. jQuery.fn.slideFadeOut = function(speed, easing, callback) {
  6. return this.animate({opacity: 'hide', height: 'hide'}, speed, easing, callback);
  7. };
  8.  
  9. jQuery.fn.slideFadeIn = function(speed, easing, callback) {
  10. return this.animate({opacity: 'show', height: 'show'}, speed, easing, callback);
  11. };
  12.  
  13. //Usage
  14. $('#selector').slideFadeIn(250);
  15. $('#selector').slideFadeOut(1000);

Report this snippet  

You need to login to post a comment.