docs.rodeo

MDN Web Docs mirror

update

{{CSSRef}} 

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 once rendered.

@media (update: < none | slow | fast >) {
  /* styles to apply if the update frequency of the output device is a match */
}

Syntax

The update feature is specified as a single keyword value chosen from the list below.

Examples

HTML

<p>
  If this text animates for you, your browser supports `update` and you are
  using a fast-updating device.
</p>

CSS

@keyframes jiggle {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(25px);
  }
}

@media (update: fast) {
  p {
    animation: 1s jiggle linear alternate infinite;
  }
}

Result

{{EmbedLiveSample("Examples")}} 

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN