【问题标题】:Amp-fx animation on amp-list wont work until scrollamp-list 上的 Amp-fx 动画在滚动之前不会起作用
【发布时间】:2018-08-11 06:49:21
【问题描述】:

我有一个amp-list,里面的项目有一些amp-fx 动画。问题是在我滚动页面之前动画不会播放。

<amp-list
   layout="fixed-height"
   height="600"
   items="Items"
   src="https://www.api.telexiran.com/application/GetVideoHomePage">
   <template type="amp-mustache" >
        <a class="videoItem"
          href = "https://www.api.telexiran.com/{{Link}}">
               <div class="videoImage">
                   <amp-img tabindex="0" height="216" width="384" 
                   layout="responsive" amp-fx="fade-in"
                        data-margin-start="0%"
                        src="{{FullImage}}">
                   </amp-img>
         </a>
    </template>
</amp-list>

【问题讨论】:

    标签: amp-html amp-list


    【解决方案1】:

    这可能值得在amp-html GitHub 上提出一个问题,因为当 amp-fx-collection 与 amp-list 一起使用时,它看起来可能是一个错误。我在他们的游乐场网站上对其进行了测试,得到了相同的结果 - 直到滚动才加载。

    【讨论】:

    • 我会报告的。感谢您的尝试。
    猜你喜欢
    • 2023-04-04
    • 1970-01-01
    • 2021-07-23
    • 1970-01-01
    • 2018-05-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多