[英]How to Fade Captions in Supersized! Slider
Hi Guys: Would you please tell me why the following code does not animate (fade-in and out) the slide captions in Supersized?嗨,伙计们:请告诉我为什么下面的代码不会为 Supersized 中的幻灯片标题设置动画(淡入和淡出)? plugin.
插入。 I am substituting the original code with the animated code as follows.
我正在用动画代码替换原始代码,如下所示。
Original code:原始代码:
if ($(vars.slide_caption).length)
{
(api.getField('title'))?$(vars.slide_caption).html(api.getField('title')):$(vars.slide_caption).html('');
}
Changed it to:将其更改为:
if ($(vars.slide_caption).length){
(api.getField('title')) ?
$(vars.slide_caption).fadeOut("slow", function(){
$(this).html(api.getField("title")).fadeIn("slow")
}) :
$(vars.slide_caption).fadeOut().html('');
}
Thanks, but it already works.谢谢,但它已经工作了。 It was my mistake.
这是我的错误。 I was including supersized.shutter.min.js on the page, but the right file is supersized.shutter.js , wherein I made the change.
我在页面上包含了supersized.shutter.min.js ,但正确的文件是supersized.shutter.js ,我在其中进行了更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.