currently experimenting with amp. Using JavaScript, we can jiggle things up, and display pieces of content that randomly interchange order. The result is a group of content that randomly changes display position each time the page is loaded, allowing each of them to receive equal attention from viewers.However i cant use JS so looking to create something similar in AMP.
答案 0 :(得分:0)
可以。 结合使用amp-bind / amp-list / amp-mustache和JSON端点。 端点为您动态提供内容。
如果只想更改位置,可以添加带有amp-bind之类的类
[CLASS]='position ? "newPosition" : "" '