Computer >> Computer tutorials >  >> Programming >> CSS

CSS pause property


This property is a shorthand for setting pause-before and pause-after. If two values are given, the first value is pause-before and the second is pause-after.

Example

Let us see an example of pause property in CSS −

<style>
   <!--
      /* pause-before: 20ms; pause-after: 20ms */
      h1 { pause : 20ms }

      /* pause-before: 30ms; pause-after: 40ms */
      h2{ pause : 30ms 40ms }

      /* pause-before: ?; pause-after: 10ms */
      h3 { pause-after : 10ms }
   -->
</style>