您好,谁能告诉我在 Jquery 循环过渡中设置爆炸/内爆类型效果http://jqueryui.com/demos/effect/的方法
我要说的是如何在 jquery 循环中添加自定义 FX?
您好,谁能告诉我在 Jquery 循环过渡中设置爆炸/内爆类型效果http://jqueryui.com/demos/effect/的方法
我要说的是如何在 jquery 循环中添加自定义 FX?
您将需要移植爆炸效果并重写它,以便 jquery 循环可以使用它。
爆炸代码:http: //jqueryui.com/ui/jquery.effects.explode.js 依赖:http: //jqueryui.com/ui/jquery.effects.core.js
$.fn.cycle.transitions.explode = function($cont, $slides, opts) {
var $el = $($slides[0]);
// your code here
};
$('#slide').cycle({fx: 'explode'});
插件页面上的参考示例:http: //jquery.malsup.com/cycle/adv2.html