Код: Выделить всё
'use client'
import { motion } from 'motion/react'
import { cn } from '@/shared/lib/css'
import { type Variants } from 'motion'
import Image from 'next/image'
const textAnim: Variants = {
hidden: { y: 30, opacity: 0 },
visible: {
y: 0,
opacity: 1,
transition: {
delay: 0.3,
duration: 0.6,
ease: [0.25, 0.46, 0.45, 0.94]
}
}
}
const lightAnim: Variants = {
hidden: { opacity: 0, scale: 0.8 },
visible: {
opacity: 1,
scale: 1,
transition: {
delay: 0.6,
duration: 0.4,
ease: 'easeOut' as const
}
}
}
const wordAnim: Variants = {
hidden: { opacity: 0, y: 15 },
visible: (i: number) => ({
opacity: 1,
y: 0,
transition: {
delay: i * 0.2 + 0.9,
duration: 0.4,
ease: 'easeOut' as const
}
})
}
const moduleAnim: Variants = {
hidden: { opacity: 0, y: 30 },
visible: {
opacity: 1,
y: 0,
transition: {
duration: 0.5,
ease: 'easeOut' as const
}
}
}
const HomeIntro = () => {
return (
Wealth Creation
System
{[...Array(4)].map((_, i) => (
))}
Learn.
{' '}
Trade.
{' '}
Earn.
Our mission is to help you find your own way in trading and organize a stable income.
We provide tools to earn with trading, and you choose what suits you best.
Time to take action. Time to evolve.
)
}
export { HomeIntro }
Подробнее здесь: https://stackoverflow.com/questions/797 ... safari-mac