Not aQuery
The brand new JS function library, and killed IE friendly
Only 14kB minified and gzipped. Can also be included as an AMD module
The brand new JS function library, and killed IE friendly
Only 14kB minified and gzipped. Can also be included as an AMD module
#exGetValues
#exPutValues
.exFadeShow
gQuery
gQuery
gQuery
gQuery Slide
gxz.el.show = function(opts){ if(typeof opts !== 'object') {return 'empty object';} opts.el = ( typeof opts.el === 'object' ? opts.el : $(opts.el) ); isNaN(opts.duration) && (opts.duration=500); isNaN(opts.wait) && (opts.wait=0); isNaN(opts.delay) && (opts.delay=0); opts.ani = ( (opts.top || opts.left) ? 1 : 0 ); opts.top || (opts.top='0px'); opts.left || (opts.left='0px'); opts.el.css({'opacity':0}); opts.el.each(function(){ let _this = $(this);opts.css = {}; if(opts.ani){ opts.css.pos = _this[0].style.position || 'relative'; _this.css({'position':opts.css.pos,'top':opts.top,'left':opts.left}) } setTimeout(()=>{ this.animate([ {opacity: 0,top: opts.top,left: opts.left}, {opacity:1,top:'0px',left:'0px'} ],opts.duration); setTimeout(()=>{ _this[0].style.opacity = ''; if(opts.ani){_this.css({position:'',top:'',left:''});} },opts.duration); },opts.wait); opts.wait += opts.duration+opts.delay; }); } gxz.el.show({el:$('#exElShow .box'),wait:500,duration:500,top:'50px',left:'-50px'});
#exElShow
请检查网络或尝试刷新重试