Inception Fold

Corner reveal effect that peels back like a page fold.

Main Features of Inception Fold

How to Use Inception Fold in Next.js

Installation Guide for Inception Fold

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

When to Use

Ideal for creative portfolios, 'Easter egg' reveals, and Next.js applications that want to emphasize discovery. Use this React component when you want to create a tactile 'peel back' effect that reveals hidden content in the corner of the screen.

Best Practices

Maintain consistent spacing within your design system by ensuring the hidden text doesn't overflow when the fold is open. Follow React best practices by using high-contrast colors for the `foldBgColor` to make the peel effect obvious. Optimize for performance by keeping the `containerHeight` sufficient for a slow, satisfying peel.

Why This Component Matters in Modern UI Development

Corner peels and page folds add a layer of physical interaction to digital interfaces. This reusable React component provide a robust implementation of complex 2D transitions that add semantic authority and surprise to your real-world application architecture.

Frequently Asked Questions

QCan I peel from a different corner?

The current implementation is optimized for a top-right peel, but the rotation and X/Y ranges can be mirrored for any corner of the screen.

QWhat should I put under the fold?

The hidden layer is perfect for 'secret' links, social media icons, or high-impact keywords that define your brand.

QIs it responsive?

Yes, the component uses viewport-based text sizes and flexible container heights to ensure the peel effect works on all screen sizes.

Inception Fold - React Scroll Reveal Animations | Uilora