Reveal

Reveal

Download

npx github-download-directory carllosnc/cn-react-thekit src/components/Reveal

Import

import { Reveal } from '@/components'

Usage

import { Reveal } from '@/components' function App() { return ( <div> <Reveal type="DOWN"> <div className="w-full h-[100px] bg-neutral-400 rounded-md" /> </Reveal> <Reveal type="UP" delay={0.2}> <div className="w-full h-[100px] bg-neutral-400 rounded-md" /> </Reveal> <Reveal type="LEFT" delay={0.4}> <div className="w-full h-[100px] bg-neutral-400 rounded-md" /> </Reveal> <Reveal type="RIGHT" delay={0.6}> <div className="w-full h-[100px] bg-neutral-400 rounded-md" /> </Reveal> <Reveal type="SCALE" delay={0.8}> <div className="w-full h-[100px] bg-neutral-400 rounded-md" /> </Reveal> <Reveal type="ROTATE" delay={1}> <div className="w-full h-[100px] bg-neutral-400 rounded-md" /> </Reveal> </div> ) }

Reveal Props

nametypedefaultdescription
childrenReactNodefalsecomponent children
delaynumber0time to start animation
typeanimationTypeDOWNanimation type
durationnumber0.9animation duration

animationType = DOWN | UP | LEFT | RIGHT | SCALE | ROTATE