Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Bootstrap
  • Tailwind
  • Bulma
  • Foundation
  • Primer
  • Spectre
  • Onsen UI
  • Semantic UI
  • Pure CSS
  • Materialize
  • SASS
  • LESS
  • Blaze UI
  • CSS Frameworks
  • Color Picker
  • CSS
  • CSS Formatter
  • Web Technology
Open In App
Next Article:
Primer CSS Fade out Animation
Next article icon

Primer CSS Fade out Animation

Last Updated : 08 Apr, 2022
Comments
Improve
Suggest changes
Like Article
Like
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 Fade out animation is used to fade out the element on the screen. This animation occurs only once when the element is revealed. 

In this article, we will discuss Primer CSS Fade out Animation.

Primer CSS Fade out Animation Class:

  • anim-fade-out: This class is used to fade out an element on the screen.

Syntax:

<span class="anim-fade-out">     ...  </span>

Example 1: This example demonstrates the use of the Primer CSS Fade out animation to animate the text.

HTML
<!DOCTYPE html> <html>  <head>   <title> Primer CSS Fade out 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 Fade out Animation </h3>      </div> <br> <br>      <div class="d-flex flex-justify-center">         <span class="anim-fade-out">           <h4> GFG Fade out </h4>         </span>     </div> </body> </html> 

Output:

Primer CSS Fade out Animation


Example 2: This example demonstrates the use of the Primer CSS Fade out Animation to animate the SVG icon.

HTML
<!DOCTYPE html> <html>  <head>   <title> Primer CSS Fade out 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 Fade out Animation </h3>      </div> <br> <br>      <div class="d-flex flex-justify-center">         <span class="anim-fade-out">           <svg class="octicon" viewBox="0 0 16 16"                 width="50" height="50" >             <path fill-rule="evenodd"                    d="M11.5 7a4.499 4.499 0 11-8.998                    0A4.499 4.499 0 0111.5 7zm-.82 4.74a6                    6 0 111.06-1.06l3.04 3.04a.75.75 0                    11-1.06 1.06l-3.04-3.04z" >             </path>           </svg>         </span>     </div> </body> </html> 

Output:

Primer CSS Fade out Animation

Reference: https://primer.style/css/utilities/animations#fade-out


Next Article
Primer CSS Fade out Animation

S

singh_teekam
Improve
Article Tags :
  • Web Technologies
  • CSS
  • Primer-CSS
  • Primer-CSS Utilities

Similar Reads

    Primer CSS Fade in Animation
    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
    2 min read
    Primer CSS Fade up Animation
    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
    2 min read
    Primer CSS Fade down Animation
    Primer CSS animations are used to make the web page more interesting and to improve the user experience. In this article, we will be seeing Primer CSS fade down Animation. This animation is used to slide down an element hiding it. This animation should be used on a container with its overflow proper
    2 min read
    Primer CSS Hover Animation
    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
    2 min read
    CSS Tooltip Fade In Animation
    The tooltip is used to display information about an element when the mouse has hovered over that element. Tooltips are by default displayed with no delay (animation). To create a tooltip fade-in animation using CSS, you can apply the opacity property to the tooltip element and animate it using CSS t
    2 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences