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

Gravity — input animation. Inputs 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/input-gravity/
- Category: Inputs (https://sds-motion-forge.netlify.app/categories/inputs/)
- 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/inputs.min.css" />

<input class="sds-input-gravity" placeholder="Type here" />
```

## 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

- [Glitch Valid](https://sds-motion-forge.netlify.app/animations/input-glitch-valid/)
- [Glow Border](https://sds-motion-forge.netlify.app/animations/input-glow-border/)
- [Gradient Border](https://sds-motion-forge.netlify.app/animations/input-gradient-border/)
- [Idle Depth](https://sds-motion-forge.netlify.app/animations/input-idle-depth/)
- [Idle Floatline](https://sds-motion-forge.netlify.app/animations/input-idle-floatline/)
- [Idle Glimmer](https://sds-motion-forge.netlify.app/animations/input-idle-glimmer/)
