Open In App

Primer CSS Loader Animated Ellipsis

Last Updated : 10 May, 2022
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. This systematic method makes sure our patterns are steady and interoperable with every other. Its approach to CSS is influenced by Object-Oriented CSS principles, functional CSS, and BEM architecture. It is highly reusable and flexible. It is created with GitHub’s design system.

The Animated Ellipsis indicates the loading state that informs the users i.e. a particular action is being processed and might take a while to complete.

Primer CSS Animated Ellipsis Class:

  • AnimatedEllipsis: This class is used to indicate an animated ellipsis loader.

Syntax:

<span class="AnimatedEllipsis"></span>

Example 1: Below is the example that illustrates the use of Primer CSS Animated Ellipsis.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title> Primer CSS Animated Ellipsis </title>
  
    <link rel="stylesheet" href=
"https://unpkg.com/@primer/css@^18.0.0/dist/primer.css" />
</head>
  
<body>
    <center>
        <h1 class="color-fg-success"> GeeksforGeeks </h1>
        <h3> Primer CSS Animated Ellipsis </h3>
          
        <span>Please wait</span>
        <span class="AnimatedEllipsis"></span>
    </center>
</body>
  
</html>


Output:

Primer CSS Animated Ellipsis

Example 2: The below example illustrates the use of Primer CSS Animated Ellipsis using different other elements.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title> Primer CSS Animated Ellipsis </title>
    <link rel="stylesheet" href=
"https://unpkg.com/@primer/css@^18.0.0/dist/primer.css" /> 
</head>
  
<body>
    <center>
        <h1 class="color-fg-success"
            GeeksforGeeks 
        </h1>
        <h3
            Primer CSS Animated Ellipsis
        </h3>
        <br
        <span class="branch-name">
            <span>
                Component is loading, Please wait</span
                <span class="AnimatedEllipsis"></span>
            </span>
        <br>
        <button class="btn btn-outline mt-1">
            <span>Please wait</span>
            <span class="AnimatedEllipsis"></span>
        </button>
        <br
        <span class="Label mt-2 " 
              data-color-mode="dark" 
              data-dark-theme="dark">
            <span>Loading</span
            <span class="AnimatedEllipsis"></span
        </span>
    </center>
</body>
</html>


Output:

Primer CSS Animated Ellipsis

Reference: https://primer.style/css/components/loaders#animated-ellipsis



Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads