Letter 3D Swap Rotate Top Explainer
Letter 3D Swap Rotate Top Explainer is a React and Tailwind CSS text component from Fancy Components, licensed MIT. Copy it and paste it into your project.
Fancy Components
MIT
text
What it is
Letter 3D Swap Rotate Top Explainer is a React and Tailwind CSS text component from Fancy Components, licensed MIT. Copy it and paste it into your project.
How to use it
Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.
Five free copies a month. No card.
No packages beyond the project baseline
Licence
This component comes from Fancy Components and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.
Letter 3D Swap Rotate Top Explainer
"use client"
import { useState } from "react"
import Letter3DSwap from "@/components/fancy/text/letter-3d-swap"
export default function Preview() {
const [debug, setDebug] = useState(false)
return (
<div className="relative w-dvw h-dvh flex flex-col items-center justify-center p-8 bg-white ">
<button
className="absolute top-4 left-4 px-2 py-1 bg-white text-black rounded-md border text-[8px] cursor-pointer hover:bg-muted"
onClick={() => setDebug(!debug)}
>
Debug: {debug ? "On" : "Off"}
</button>
<div className="flex flex-col items-center max-w-2xl font-cotham">
<Letter3DSwap
mainClassName="text-7xl bg-white lowercase"
frontFaceClassName={`bg-white ${debug ? 'border' : ''} text-black`}
secondFaceClassName={`bg-white ${debug ? 'border' : ''} text-black`}
rotateDirection="left"
staggerDuration={0.03}
staggerFrom="first"
transition={{ type: "spring", damping: 25, stiffness: debug ? 50 : 160 }}
>
SET YOUR MIND TO IT
</Letter3DSwap>
</div>
</div>
)
}