{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "blur-out-up",
  "title": "Blur Out Up",
  "description": "Words arrive clean and depart upward with increasing blur for airy exits.",
  "dependencies": ["remotion"],
  "files": [
    {
      "path": "registry/remocn/blur-out-up/index.tsx",
      "content": "\"use client\";\n\nimport { Easing, interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface BlurOutUpProps {\n  text: string;\n  staggerDelay?: number;\n  fontSize?: number;\n  color?: string;\n  fontWeight?: number;\n  speed?: number;\n  className?: string;\n}\n\nexport function BlurOutUp({\n  text,\n  staggerDelay = 1,\n  fontSize = 72,\n  color = \"#171717\",\n  fontWeight = 600,\n  speed = 1,\n  className,\n}: BlurOutUpProps) {\n  const frame = useCurrentFrame() * speed;\n  const { durationInFrames } = useVideoConfig();\n\n  const words = text.split(\" \");\n\n  const enterDur = 17;\n  const enterTravel = 6;\n  const exitDur = 14;\n  const exitTravelFrom = 8;\n\n  const enterEasing = Easing.bezier(0.22, 1, 0.36, 1);\n  const exitEasing = Easing.bezier(0.64, 0, 0.78, 0);\n\n  const enterEnd = enterDur + (words.length - 1) * staggerDelay;\n  const exitStart = Math.max(\n    enterEnd,\n    durationInFrames - exitDur - (words.length - 1) * staggerDelay,\n  );\n\n  return (\n    <div\n      style={{\n        position: \"absolute\",\n        inset: 0,\n        display: \"flex\",\n        alignItems: \"center\",\n        justifyContent: \"center\",\n        background: \"transparent\",\n      }}\n    >\n      <span\n        className={className}\n        style={{\n          fontSize,\n          fontWeight,\n          color,\n          letterSpacing: \"-0.03em\",\n          fontFamily:\n            \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n        }}\n      >\n        {words.map((word, i) => {\n          const enterLocal = frame - i * staggerDelay;\n          const exitLocal = frame - exitStart - i * staggerDelay;\n\n          const enterP = interpolate(enterLocal, [0, enterDur], [0, 1], {\n            extrapolateLeft: \"clamp\",\n            extrapolateRight: \"clamp\",\n            easing: enterEasing,\n          });\n\n          const exitP = interpolate(exitLocal, [0, exitDur], [0, 1], {\n            extrapolateLeft: \"clamp\",\n            extrapolateRight: \"clamp\",\n            easing: exitEasing,\n          });\n\n          const opacity = enterP * (1 - exitP);\n\n          const yEnter = interpolate(enterLocal, [0, enterTravel], [10, 0], {\n            extrapolateLeft: \"clamp\",\n            extrapolateRight: \"clamp\",\n            easing: enterEasing,\n          });\n\n          const yExit = interpolate(\n            exitLocal,\n            [exitTravelFrom, exitDur],\n            [0, -14],\n            {\n              extrapolateLeft: \"clamp\",\n              extrapolateRight: \"clamp\",\n              easing: exitEasing,\n            },\n          );\n\n          const y = yEnter + yExit;\n\n          const blurEnter = interpolate(enterLocal, [0, enterDur], [6, 0], {\n            extrapolateLeft: \"clamp\",\n            extrapolateRight: \"clamp\",\n            easing: enterEasing,\n          });\n\n          const blurExit = interpolate(exitLocal, [0, exitDur], [0, 8], {\n            extrapolateLeft: \"clamp\",\n            extrapolateRight: \"clamp\",\n            easing: exitEasing,\n          });\n\n          const blur = blurEnter + blurExit;\n\n          return (\n            <span\n              key={i}\n              style={{\n                display: \"inline-block\",\n                marginRight: \"0.25em\",\n                transformOrigin: \"50% 55%\",\n                opacity,\n                transform: `translateY(${y}px)`,\n                filter: `blur(${blur}px)`,\n              }}\n            >\n              {word}\n            </span>\n          );\n        })}\n      </span>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/blur-out-up.tsx"
    }
  ],
  "type": "registry:component"
}
