# Gravity (`.sds-card-gravity`)

Gravity — card animation. Cards animation in SDS Motion Forge v5.0.0. It plays once as soon as the class is applied.

- Page: https://sds-motion-forge.netlify.app/animations/card-gravity/
- Category: Cards (https://sds-motion-forge.netlify.app/categories/cards/)
- Animated properties: opacity, transform
- Compositor-only: yes
- Needs child elements: no
- Needs per-character spans: no
- JavaScript: none required

## Use it

```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@salkomdesignstudio/sds-motion-forge/dist/categories/cards.min.css" />

<div class="sds-card-gravity">Card</div>
```

## How it works

Plays once, as soon as the class is applied. It animates opacity and movement and scale (transform) — compositor-only, so it never causes page reflow. `--sds-duration-base` controls the speed and `--sds-ease-bounce` controls the feel — override either on the element or :root (the sds-fast/sds-slow modifier classes do exactly that).

## Related

- [Glass Wipe](https://sds-motion-forge.netlify.app/animations/card-glass-wipe/)
- [Glitch](https://sds-motion-forge.netlify.app/animations/card-glitch/)
- [Glow Surge](https://sds-motion-forge.netlify.app/animations/card-glow/)
- [Holographic Tilt](https://sds-motion-forge.netlify.app/animations/card-holo/)
- [Hue Shift](https://sds-motion-forge.netlify.app/animations/card-hue-shift/)
- [Idle Bob](https://sds-motion-forge.netlify.app/animations/card-idle-bob/)
