# Scroll Trigger 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-translate-x-demo).

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

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

export function ScrollAnimationTranslateXDemo() {
  return (
    <ScrollAnimation>
      <ScrollTranslateY className="h-dvh py-8 px-6 place-content-center">
        <ScrollTranslateX className=" w-full">
          <h1 className="text-5xl not-first:font-bold tracking-tight uppercase">
            Crafting websites
          </h1>
        </ScrollTranslateX>
        <ScrollTranslateX xRange={[0, -150]} className=" w-full text-right">
          <h1 className="text-primary text-4xl font-bold tracking-tight uppercase">
            in no time
          </h1>
        </ScrollTranslateX>
      </ScrollTranslateY>
    </ScrollAnimation>
  );
}
```
