metaads-pro/src/components/public/ScrollReveal.tsx
Marcio Bevervanso 234314d1c6 Publish MetaAds Pro: AI-driven Meta Ads campaign management dashboard
Full app with AI campaign creation/copy/creative generation, dashboard,
campaign automation engine, Meta OAuth login, and a redesigned landing page.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 19:30:33 -03:00

28 lines
550 B
TypeScript

'use client';
import { motion } from 'framer-motion';
import { ReactNode } from 'react';
export function ScrollReveal({
children,
delay = 0,
y = 28,
className = '',
}: {
children: ReactNode;
delay?: number;
y?: number;
className?: string;
}) {
return (
<motion.div
initial={{ opacity: 0, y }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-60px' }}
transition={{ duration: 0.6, delay, ease: 'easeOut' }}
className={className}
>
{children}
</motion.div>
);
}