Galleria Jquery 过渡效果

发布于 2024-09-11 12:42:32 字数 114 浏览 2 评论 0原文

所以我使用 Galleria 来展示幻灯片。我将其设置为自动播放,因此它每 3 秒显示一张新图片。目前看来,过渡是图片从右侧滑入。有什么办法可以让它淡入吗?几乎除了滑动之外的任何过渡。

谢谢! 凯文

So I am using galleria to show a slide show. I have it set to autoplay, so it shows a new picture every 3 seconds. Currently, the transition seems to be the picture sliding in from the right. Is there a way I can have it fade in? Pretty much any transition other then the sliding.

Thanks!
Kevin

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

静若繁花 2024-09-18 12:42:32

默认过渡是'fade',但如果您正在加载主题,情况可能并非如此,因为大多数主题都会更改默认值,只需设置 转换选项回到“淡入淡出”,如下所示:

Galleria.loadTheme('/themes/classic/galleria.classic.js'); //loading theme
$('#demo').galleria({
    height:400,
    transition: 'fade'
});

The default transition is 'fade', but if you're loading a theme this may not be the case, since most themes change the default, just set the transition option back to "fade", like this:

Galleria.loadTheme('/themes/classic/galleria.classic.js'); //loading theme
$('#demo').galleria({
    height:400,
    transition: 'fade'
});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文