1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- ( function( factory ) {
- if ( typeof define === "function" && define.amd ) {
-
- define( [
- "jquery",
- "../version",
- "../effect"
- ], factory );
- } else {
-
- factory( jQuery );
- }
- }( function( $ ) {
- return $.effects.define( "fade", "toggle", function( options, done ) {
- var show = options.mode === "show";
- $( this )
- .css( "opacity", show ? 0 : 1 )
- .animate( {
- opacity: show ? 1 : 0
- }, {
- queue: false,
- duration: options.duration,
- easing: options.easing,
- complete: done
- } );
- } );
- } ) );
|