Response title
This is preview!
- // Set options
- var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
- var direction = o.options.direction || 'left'; // Default Direction
- // Adjust
$.effects.save(el, props); el.show(); // Save & Show
$.effects.createWrapper(el); // Create Wrapper
var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) / 2 : el.outerWidth({margin:true}) / 2);
if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shiftwhich means options would be
mode: "show" or "hide"
direction: "up", "down", or "left" (maybe right? dunno, give it a try.)i used the src at http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.js line 4716
-- Kevin
© 2013 jQuery Foundation
Sponsored by and others.