--- title: Animations path: utilities/animations example_layout: toggle status: Stable source: 'https://github.com/primer/css/blob/main/src/utilities/animations.scss' bundle: utilities --- Animations are reusable animation classes that you can use to emphasize an element. All of these animations will animate if you toggle their visibility using the "Toggle" button. ## Fade in The `.anim-fade-in` class is used to fade in an element on the page. This will run once when the element is revealed. ```html live Hello from GitHub! ``` ## Fade out The `.anim-fade-out` class is used to fade out an element on the page. This will run once when the element is revealed. ```html live Hello from GitHub! ``` ## Fade up The `.anim-fade-up` class is used to reveal an element on the page by sliding it up from below the fold. You should use this in a container with `overflow: hidden;` or on the bottom of the page. ```html live