{# canonical_base is the OWNING tenant's origin: all 16 Peasy domains serve the same catalogue, so a page rendered by a non-owner points its canonical at the owner instead of competing with it. Falls back to this site for static/self-owned pages. #}
🍋
Menu
CSS

Keyframe Animation

CSS @keyframes Animation

A set of style rules defining intermediate steps in a CSS animation sequence using percentage waypoints.

Technisches Detail

CSS Keyframe Animations animate property changes over a specified duration using easing functions (ease, linear, cubic-bezier). Only animatable properties can transition — layout properties like display and grid-template cannot. Performance-critical transitions should target transform and opacity, which run on the compositor thread without triggering layout recalculation. The will-change property hints the browser to optimize for upcoming transitions by promoting elements to their own compositing layer.

Beispiel

```css
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: translateY(0); }
}
.card {
  animation: fade-in-up 0.4s ease-out both;
}
```

Verwandte Formate

Verwandte Tools

Verwandte Begriffe