Primer CSS Toast animation in Last Updated : 23 Jul, 2025 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. The Toast is used to display live feedback to the user. The Toast animation in is used to animate the toast using Toast--animateIn and Toast--animateOut modifier classes. Primer CSS Toast animation in Class: Toast--animateIn: This class is used to animate the toast in from the bottom.Toast--animateOut: This class is used to animate the toast out from the bottom.Syntax: <div class="Toast Toast--animateIn"> Content </div> Example 1: This example demonstrates the use of the Primer CSS Toast animation in using Toast--animateIn class. HTML <!DOCTYPE html> <html> <head> <title> Primer CSS Toast animation in </title> <link rel="stylesheet" href= "https://unpkg.com/@primer/[email protected]/dist/primer.css" /> </head> <body> <div class="text-center"> <h1 class="color-fg-success"> GeeksforGeeks </h1> <h3> Primer CSS Toast animation in </h3> </div> <div class="d-flex flex-justify-center"> <div class="Toast Toast--animateIn"> <span class="Toast-icon"> <svg class="octicon" xmlns="https://www.geeksforgeeks.org/" viewBox="0 0 15 15" width="25" height="25"> <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> </span> <span class="Toast-content"> GeeksforGeeks Animate In </span> </div> </div> </body> </html> Output: Primer CSS Toast animationExample 2: This example demonstrates the Primer CSS Toast animation in using Toast--animateOut class. HTML <!DOCTYPE html> <html> <head> <title>Primer CSS Toast animation in</title> <link rel="stylesheet" href= "https://unpkg.com/@primer/[email protected]/dist/primer.css" /> </head> <body> <div class="text-center"> <h1 class="color-fg-success">GeeksforGeeks</h1> <h3> Primer CSS Toast animation in </h3> </div> <div class="d-flex flex-justify-center"> <div class="Toast Toast--animateOut"> <span class="Toast-icon"> <svg class="octicon" xmlns="https://www.geeksforgeeks.org/" viewBox="0 0 15 15" width="25" height="25"> <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> </span> <span class="Toast-content"> GeeksforGeeks Animate Out </span> </div> </div> </body> </html> Output: Primer CSS Toast animation Reference: https://primer.style/#toast-animation-in Comment More infoAdvertise with us Next Article Primer CSS Fade in Animation S singh_teekam Follow Improve Article Tags : Web Technologies CSS Primer-CSS Primer-CSS Component Similar Reads Primer CSS Scale 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 Toast with Loading 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 3 min read Primer CSS Rotation Animation Primer CSS animations are generally used to get the user's attention towards the animating element and for a better user experience. In this article, we will be seeing Primer CSS Rotation Animation. To apply the rotation animation to an element, we have to add the anim-rotate class to the element. A 2 min read 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 Pulse 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 1 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 Like