![]() |
VOOZH | about |
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:
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.
Output:
Example 2: This example demonstrates the Primer CSS Toast animation in using Toast--animateOut class.
Output:
Reference: https://primer.style/#toast-animation-in