seperate-away-text
eldoraui/seperate-away-textFreeComponent
A seperate away text component.
Live preview
live · rendered by the registry
Rendered by eldoraui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://eldoraui.site/r/seperate-away-text.jsonSource
1"use client"23import clsx from "clsx"4import { motion } from "motion/react"56interface SeparateAwayTextProps {7 textLeft?: string8 textRight?: string9 className?: string10}1112export const SeparateAwayText: React.FC<SeparateAwayTextProps> = ({13 textLeft = "",14 textRight = "",15 className = "",16}) => {17 const separate = {18 hidden: { opacity: 0, y: 0 },19 visible: (custom: number) => ({20 opacity: 1,21 y: custom * 5,22 transition: { duration: 1.5 },23 }),24 }2526 return (27 <div className={className}>28 <motion.h129 custom={-1}30 variants={separate}31 initial="hidden"32 animate="visible"33 className={clsx(34 "font-display text-center font-bold drop-shadow-sm",35 "text-4xl md:text-5xl lg:text-6xl xl:text-7xl",36 "tracking-[-0.02em]",37 "md:leading-[4rem] lg:leading-[4.5rem] xl:leading-[5rem]"38 )}39 >40 {textLeft}41 </motion.h1>42 <motion.h143 custom={1}44 variants={separate}45 initial="hidden"46 animate="visible"47 className={clsx(48 "font-display text-center font-bold drop-shadow-sm",49 "text-4xl md:text-5xl lg:text-6xl xl:text-7xl",50 "tracking-[-0.02em]",51 "md:leading-[4rem] lg:leading-[4.5rem] xl:leading-[5rem]"52 )}53 >54 {textRight}55 </motion.h1>56 </div>57 )58}
What it pulls in
npm packages
Files it writes
More from eldoraui
All 115 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| animated-badgeanimated-badge | eldoraui | Components | Free | 2 deps | |
| animated-frameworksanimated-frameworks | eldoraui | Components | Free | 2 deps | |
| animated-grid-patternanimated-grid-pattern | eldoraui | Components | Free | 3 deps | |
| animated-listanimated-list | eldoraui | Components | Free | 1 dep | |
| animated-shiny-buttonanimated-shiny-button | eldoraui | Components | Free | 1 dep | |
| blur-in-textblur-in-text | eldoraui | Components | Free | 3 deps | |
| browserbrowser | eldoraui | Components | Free | 2 deps | |
| card-flip-hovercard-flip-hover | eldoraui | Components | Free | 1 dep |
