Open In App

Primer CSS Scale in 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. 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.

Primer CSS Animation is used to emphasize the element using the reusable classes. Primer CSS Scale in Animation is used to scale in the element using the anim-scale-in class. In this article, we will discuss the Primer CSS Scale in Animation.

Primer CSS Scale in Animation Class:

  • anim-scale-in: This class is used to scale the element in.

Syntax:

<div class="anim-scale-in">
    ...
</div>

Example 1: The following code demonstrates the Primer CSS Scale in Animation.

HTML




<!DOCTYPE html>
<html>
  
<head>
  <title> Primer CSS Scale in 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> Primer CSS Scale in Animation </h3
  </div> <br> <br>
  
  <div class="d-flex flex-justify-center">
    <div class="anim-scale-in color-bg-success-emphasis 
                color-fg-on-emphasis" >
      <h4> GeeksforGeeks </h4>
    </div>
  </div>
</body>
</html>


Output:

Primer CSS Scale in Animation

Example 2: The following code demonstrates the Primer CSS Scale in Animation.

HTML




<!DOCTYPE html>
<html>
  
<head>
  <title> Primer CSS Scale in 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> Primer CSS Scale in Animation </h3
  </div> <br> <br>
  
  <div class="d-flex flex-justify-center">
    <div class="anim-scale-in color-bg-success-emphasis 
                color-fg-on-emphasis" >
      <svg class="octicon" viewBox="0 0 15 15" 
           width="100" height="100">
        <path d="M13.78 4.22a.75.75 0 010 1.06l-7.25 
                7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 
                011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z" >
        </path>
      </svg>
    </div>
  </div>
</body>
</html>


Output:

Primer CSS Scale in Animation

Reference: https://primer.style/css/utilities/animations#scale-in



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