Animations & Motion

Inception Fold

Corner reveal effect that peels back like a page fold.

scrollrevealfoldcornerpeel

Props

Customize the component with these props

PropertyTypeDefaultDescription
image
stringhttps://images.unsplash.com/photo-1620641788421-7a1c342ea42e?q=80&w=1000&auto=format&fit=cropImage URL
backgroundColor
stringbg-zinc-900Background color of the component
containerHeight
stringh-[300vh]Height of the container
backgroundColor2
stringbg-yellow-400Secondary background color
backgroundText
stringSECRETBackground text displayed
backgroundTextColor
stringtext-blackColor of background text
backgroundTextSize
stringtext-[15vw]Size of background text
backgroundTextRotation
number45Rotation of background text in degrees
backgroundTextOpacity
number0.2Opacity of background text
imageWidth
stringw-[400px]Width of the image
imageHeight
stringh-[500px]Height of the image
imageRotation
number12Rotation of image in degrees
imageBorderColor
stringborder-whiteBorder color of image
imageBorderWidth
stringborder-8Border width of image
foldBgColor
stringbg-whiteBackground color of fold
foldTitle
stringPEELTitle text on fold
foldTitleColor
stringtext-blackColor of fold title
foldTitleSize
stringtext-8xlSize of fold title
foldDescription
stringScroll to tear realityDescription text on fold
foldDescriptionColor
stringtext-gray-500Color of fold description
foldDescriptionSize
stringtext-2xlSize of fold description
foldPadding
stringp-20Padding of fold content
rotateRange
[number, number][0, -90]Rotation range in degrees
xRange
[number, number][0, -500]X position range
yRange
[number, number][0, 500]Y position range
borderRadiusRange
[string, string]["0%", "50%"]Border radius range
scrollOffset
[string, string]["start start", "end end"]Scroll offset configuration
className
stringAdditional CSS classes
Inception Fold - Animations & Motion Component | UILora