CSS pause-before property
CSS pause-before Property
Description
The pause-before property defines the duration of a silent pause inserted before an element’s content.
Possible Values
- **time** – Any time value (e.g., 300ms); the length of the pause will be the specified time.
-
**percentage** – The length of the pause is determined by the value of speech-rate . So, if there are two words per second (120 words per minute), pause-before: 50% will produce a 250ms pause, and if there is one word per second (60 words per minute), it will be 500ms.
DOM Syntax
object.style.pauseBefore = "300ms";
Applies to
All HTML elements
Example
Here is an example –
<style type = "text/css">
<!--
h2, h3, h4 {pause-before: 200%;}
ol li {pause-before: 1s;}
-->
</style>