# Lean (`.sds-scroll-lean`)

Element leans in from the right in perspective then snaps upright. Scroll animation in SDS Motion Forge v5.0.0. It plays once when scrolled into view.

- Page: https://sds-motion-forge.netlify.app/animations/scroll-lean/
- Category: Scroll (https://sds-motion-forge.netlify.app/categories/scroll/)
- Animated properties: opacity, transform
- Compositor-only: yes
- Needs child elements: no
- Needs per-character spans: no
- JavaScript: sds-scroll (optional)

## Use it

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

<div class="sds-scroll-lean" data-sds>Scrolls into view</div>
```

## How it works

Plays when the element enters the viewport (gated by data-sds + the scroll engine, or fire it yourself by adding the class). It animates opacity and movement and scale (transform) — compositor-only, so it never causes page reflow. `--sds-duration-base` controls the speed and `--sds-easing` controls the feel — override either on the element or :root (the sds-fast/sds-slow modifier classes do exactly that).

## Related

- [Iris](https://sds-motion-forge.netlify.app/animations/scroll-iris/)
- [Jello](https://sds-motion-forge.netlify.app/animations/scroll-jello/)
- [Kaboom](https://sds-motion-forge.netlify.app/animations/scroll-kaboom/)
- [Liquid Enter](https://sds-motion-forge.netlify.app/animations/scroll-liquid/)
- [Magnetic Pull](https://sds-motion-forge.netlify.app/animations/scroll-magnetic/)
- [Materialize](https://sds-motion-forge.netlify.app/animations/scroll-materialize/)
