The update
CSS @media
media feature can be used to apply styles based on how frequently (if at all) the output device is able to modify the appearance of the 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. | Working Draft | Initial definition. |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | ? | ? | ? | ? | ? |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
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