Open In App

CSS pause-after Property

The CSS pause-after property is used to define the pause time after the element. This property can be seen as the speech media equivalent to the margin-bottom property in visual media.

Syntax:



pause-after: time | percentage;

Parameters: This property accepts two parameters as mentioned above and described below:

Example 1: Here is a basic example of CSS pause-after property. 






<!DOCTYPE html>
<html>
<head>
    <style>
        audio {
            pause-after: 20ms;
        }
    </style>
</head>
 
<body style="text-align: center;">
    <h1 style="color: green;">GeeksforGeeks</h1>
 
    <p>CSS pause-after Property</p>
 
    <audio controls>
        <source src=
                type="audio/mp3">
    </audio>
</body>
</html>

Output:

Example 2: In this example, we are using CSS pause-after property.




<!DOCTYPE html>
<html>
<head>
    <style>
        audio {
            pause-after: 30%;
        }
    </style>
</head>
 
<body style="text-align: center;">
    <h1 style="color: green;">GeeksforGeeks</h1>
 
    <p>CSS pause-after Property</p>
 
    <audio controls>
        <source src=
                type="audio/mp3">
    </audio>
</body>
</html>

Output:

Supported Browsers: This property is deprecated in CSS3 so the major browsers are not supported by this property


Article Tags :