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>
28 lines
550 B
TypeScript
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>
|
|
);
|
|
}
|