Demo showing how to implement scroll triggred animations.
@systaliko-ui
registry/demo/scroll-animations/scroll-animation-inset-x/index.tsx
import {
ScrollAnimation,
ScrollInsetX,
ScrollTranslateY,
} from '@/components/systaliko-ui/scroll-animations/scroll-animation';
export function ScrollAnimationInsetXDemo() {
return (
<ScrollAnimation>
<ScrollTranslateY className="h-dvh py-8 px-6 flex justify-center items-center">
<ScrollInsetX
className="overflow-hidden w-4/5 mx-auto rounded-md flex justify-center items-center"
insetRange={[120, 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
/>
</ScrollInsetX>
</ScrollTranslateY>
</ScrollAnimation>
);
}




























