convert-next.js

This commit is contained in:
R-Bharathraj
2026-06-29 18:07:43 +05:30
parent 4760f8e063
commit 0140b0bdf8
1474 changed files with 16523 additions and 9272 deletions

View File

@@ -0,0 +1,28 @@
'use client';
import React from 'react';
import { useGSAPReveal, RevealAnimation } from '@/hooks/useGSAPReveal';
interface Props {
children: React.ReactNode;
delay?: number;
animation?: RevealAnimation;
duration?: number;
ease?: string;
start?: string;
className?: string;
style?: React.CSSProperties;
as?: keyof React.JSX.IntrinsicElements;
}
export default function GSAPReveal({
children, delay = 0, animation = 'fade-up',
duration = 1.0, ease, start, className, style,
}: Props) {
const ref = useGSAPReveal({ delay, animation, duration, ease, start });
return (
<div ref={ref} className={className} style={{ willChange: 'transform, opacity', ...style }}>
{children}
</div>
);
}