by psandersen · 7y ago · 0 comments
https://amp.dev/fr/documentation/guides-and-tutorials/learn/...
Edit: Developers can also add that css in their amp style, and it seems to be accepted by the amp validator. AMP devs, you know what to do! ;)
html[\26a1] body, html[amp] body {
animation: none;
}
(I wrote \26a1 because HN doesn’t allow the literal U+26A1 character.)That way it applies to all AMP pages, regardless of their URL, and doesn’t clobber any other pages (though I can’t actually imagine any genuine animation on a body element).
.*amp.*