[英]Call Jssor Slider Transition during onclick event
I am new to this jssor slider animation.I am trying to update the jssor slider transition from one effect to other during button click. 我是这个jssor滑块动画的新手,我试图在按钮单击期间将jssor滑块的效果从一种效果更新为另一种效果。 Ex.
例如 if the slider transition effect is fade-in , then after button click it should be fade-out.
如果滑块过渡效果是“淡入”,则在单击按钮后应淡出。
I have tried few options like SetCaptionTransitions()
, setSlideshowTransitions()
, changing the slider options. 我尝试了一些选项,例如
SetCaptionTransitions()
, setSlideshowTransitions()
,更改滑块选项。 but i did not work out. 但是我没有锻炼。 I need help on this.
我需要帮助。
Regards, Neji 问候,Neji
jssor_slider1.$SetSlideshowTransitions([{ $Duration: 800, x: 0.3, $During: { $Left: [0.3, 0.7] }, $Easing: { $Left: $Jease$.$InCubic, $Opacity: $Jease$.$Linear }, $Opacity: 2 }]]);
on button click 在按钮上单击
jssor_slider1.$SetSlideshowTransitions([{ $Duration: 800, x: 0.3, $SlideOut: true, $Easing: { $Left: $Jease$.$InCubic, $Opacity: $Jease$.$Linear }, $Opacity: 2 }]]);
See example here https://www.jssor.com/slideshow/x-fade.html 在此处查看示例https://www.jssor.com/slideshow/x-fade.html
view-source: https://www.jssor.com/slideshow/x-fade.html 查看源代码: https : //www.jssor.com/slideshow/x-fade.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.