On this page
Keyframes, Fonts & Entry Animations
Prev: Layers, Scope & Custom Properties | Up: at_rules | Next: tutorials
Rel: Custom Properties & Animation, Typography & Color
Ref: MDN Web Docs — @keyframes
Tags: #public #web #css #at-rules #animation
Contents
@keyframes
@keyframes fade-up {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
.toast {
animation: fade-up 200ms ease-out both;
}
@starting-style (Animating Entry from display: none)
@starting-style defines initial styles for elements transitioning into view (such as <dialog> or [popover] elements):
dialog[open] {
opacity: 1;
transition: opacity 200ms ease, display 200ms allow-discrete;
}
@starting-style {
dialog[open] { opacity: 0; }
}
@font-face
@font-face {
font-family: "InterVar";
src: url("inter.woff2") format("woff2");
font-weight: 100 900;
font-display: swap;
}
Linked from
Related notes
- tuts/css/properties/custom_properties_and_animation Linked here; links to this page; shared tags: #animation, #css, #web
- tuts/css/at_rules Linked here; links to this page; shared tags: #css, #web
- tuts/css/at_rules/layers_and_scope Linked here; links to this page; shared tags: #css, #web
- tuts/css/properties/typography_and_color Linked here; shared tags: #css, #web
- tuts/css/tutorials Linked here; shared tags: #css, #web
- tuts/html/elements/media links to this page; shared tags: #web
- tuts/html/elements/media/marquee links to this page; shared tags: #web
- tuts/css shared tags: #css, #web
- tuts/css/at_rules/media_and_container_queries shared tags: #css, #web
- tuts/css/functions shared tags: #css, #web