Open In App

Primer CSS Pulse Animation

Improve
Improve
Like Article
Like
Save
Share
Report

Primer CSS is a free open-source CSS framework that is built upon systems that create the foundation of the basic style elements such as spacing, typography, and color. It is highly reusable and flexible. It is created with GitHub’s design system.

Animations are an important tool to attract users to a specific part of the web page. It helps to point out something important to the consumers. There are different types of animation that we can make use of the pulse type. Pulse animation is used to light up and down the UI element continuously. 

Pulse Animation Used Class:

  • .anim-pulse: Add this class to the respective element to implement pulse animation. 

Syntax:

<div class=".anim-pulse">
   ...
</div>

Example: This example demonstrates the use of the Primer CSS Pulse animation using the anim-pulse class.

HTML




<!DOCTYPE html>
<html>
<head>
    <title> Primer CSS Pulse Animation</title>
    <link rel="stylesheet" href=
"https://unpkg.com/@primer/css@^18.0.0/dist/primer.css" />
</head>
<body>
    <div class="text-center">
        <h1 class="color-fg-success"> GeeksforGeeks </h1>
        <h3><u>Primer CSS Pulse Animation</u></h3><br/>
    </div>
    <div class="anim-pulse d-flex flex-justify-center">
        <img src=
    </div>
</body>
</html>


Output:

Primer CSS Pulse Animation

Reference: https://primer.style/css/utilities/animations#pulse


Last Updated : 21 Apr, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads