The update
CSS media feature can be used to test how frequently (if at all) the output device is able to modify the appearance of content.
The update
feature is specified as a single keyword value chosen from the list below.
none
slow
fast
<p>If this text animates for you, you are using a fast-updating device.</p>
@keyframes jiggle { from { transform: translateY(0); } to { transform: translateY(25px); } } @media (update: fast) { p { animation: 1s jiggle linear alternate infinite; } }
Specification | Status | Comment |
---|---|---|
Media Queries Level 4 The definition of 'update' in that specification. | Candidate Recommendation | Initial definition. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | No | ? | No | No | No | No |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | ? | ? | ? | ? | ? | ? | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/update-frequency