# Scroll Trigger Scale Animations Demo

> Demo showing how to implement scroll triggred animations.

A shadcn/ui block from the [@systaliko-ui](https://systaliko-ui.vercel.app) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/systaliko-ui/scroll-animation-scale-demo).

- Page, with a live preview: https://shadcn.exchange/r/systaliko-ui/scroll-animation-scale-demo
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/systaliko-ui/scroll-animation-scale-demo-light-6e1dc681777f3149.png
- Registry item: https://systaliko-ui.vercel.app/r/scroll-animation-scale-demo.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://systaliko-ui.vercel.app/r/scroll-animation-scale-demo.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `https://systaliko-ui.vercel.app/r/scroll-animations`

## Files

### `registry/demo/scroll-animations/scroll-animation-scale/index.tsx`

```tsx
import {
  ScrollAnimation,
  ScrollScale,
  ScrollTranslateY,
} from '@/components/systaliko-ui/scroll-animations/scroll-animation';

export const ScrollAnimationScaleDemo = () => {
  return (
    <ScrollAnimation>
      <ScrollTranslateY className="h-dvh  py-8 px-6 flex justify-center items-center">
        <ScrollScale
          className="overflow-hidden rounded-4xl shadow"
          scaleRange={[0.4, 1]}
        >
          <img
            src="https://images.unsplash.com/photo-1608501078713-8e445a709b39?q=80&w=2670&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
            alt="tokyo"
            className="max-w-full max-h-full"
          />
        </ScrollScale>
      </ScrollTranslateY>
    </ScrollAnimation>
  );
};
```
