# Scroll Trigger X-inset 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-inset-y-demo).

- Page, with a live preview: https://shadcn.exchange/r/systaliko-ui/scroll-animation-inset-y-demo
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/systaliko-ui/scroll-animation-inset-y-demo-light-49be42dab48f9569.png
- Registry item: https://systaliko-ui.vercel.app/r/scroll-animation-inset-y-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-inset-y-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-inset-y/index.tsx`

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

export function ScrollAnimationInsetYDemo() {
  return (
    <ScrollAnimation>
      <ScrollTranslateY className="h-dvh  py-8 px-6 flex justify-center items-center">
        <ScrollInsetY
          className="overflow-hidden w-4/5 mx-auto  rounded-md flex justify-center items-center"
          insetRange={[80, 0]}
        >
          <video
            className="relative z-10  max-h-full max-w-full "
            src="https://videos.pexels.com/video-files/8086711/8086711-uhd_2560_1440_25fps.mp4"
            autoPlay
            muted
            loop
            playsInline
          />
        </ScrollInsetY>
      </ScrollTranslateY>
    </ScrollAnimation>
  );
}
```
