jquery cycle2 - 如何调整自动高度选项?
jquery cycle2 - how to adjust autoheight options?
我正在使用 jQuery cycle2 to build a slideshow and am making use of the autoheight feature/plugin。
我想缩短动画时间并查看the jquery.cycle2.autoheight.js plugin code,我明白了:
$.extend($.fn.cycle.defaults, {
autoHeight: 0, // setting this option to false disables autoHeight logic
autoHeightSpeed: 250,
autoHeightEasing: null
});
我正在通过 cdnjs 作为 CDN 实现 Cycle2,所以我不能直接编辑代码,覆盖 autoHeightSpeed
选项的正确方法是什么?
在加载循环插件之后和加载自动高度插件之前,您可以设置默认值
$.fn.cycle.defaults.autoHeightSpeed = 432432;
我正在使用 jQuery cycle2 to build a slideshow and am making use of the autoheight feature/plugin。
我想缩短动画时间并查看the jquery.cycle2.autoheight.js plugin code,我明白了:
$.extend($.fn.cycle.defaults, {
autoHeight: 0, // setting this option to false disables autoHeight logic
autoHeightSpeed: 250,
autoHeightEasing: null
});
我正在通过 cdnjs 作为 CDN 实现 Cycle2,所以我不能直接编辑代码,覆盖 autoHeightSpeed
选项的正确方法是什么?
在加载循环插件之后和加载自动高度插件之前,您可以设置默认值
$.fn.cycle.defaults.autoHeightSpeed = 432432;