docs.rodeo

MDN Web Docs mirror

update

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.

Syntax

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