禁用加载动画砌体无限滚动 [英] Disable loading animation masonry infinite scroll
问题描述
我正在尝试禁用加载 #infsrc-loading
容器的恼人动画。看看这里的无限滚动演示 http://masonry.desandro.com/demos/无限scroll.html 。
I'm trying to disable the annoying animation of the loading #infsrc-loading
container. Take a look at the infinite scroll demo here http://masonry.desandro.com/demos/infinite-scroll.html.
第一次加载div出现时它是静态的,但之后加载更多内容时会有一个动画,就像它从底部出现并增长一样。我想禁用它,但我找不到这个设置。
The first time the loading div appears it's static but after that when it loads more content is has an animation, like it appears from the bottom and grows. I want to disable this, but I couldn't find where this is being set.
我试过禁用CSS转换和 $('#infsrc在插件的回调中加载')。show()
。我查看了Masonry和InfiniteScroll的来源,但仍无法分辨出这个设置的位置。我也在Masonry中禁用了动画。
I tried disabling CSS transitions and $('#infsrc-loading').show()
in the plugin's callback. I looked at the source of both Masonry and InfiniteScroll and still can't tell where this setting is being set. I have disabled animations in Masonry as well.
如果有帮助,我正在使用WordPress插件。
I'm using the WordPress plugin if that helps.
推荐答案
我找到了这段代码。它位于无限卷轴第155行。我刚刚将 show
更改为 fadeIn
,使其按照我需要的方式工作。
I found the piece of code. It's on line 155 of Infinite Scroll. I just changed show
to fadeIn
to make it work how I needed it.
这篇关于禁用加载动画砌体无限滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!