{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "blur-reveal",
  "title": "Blur Reveal",
  "description": "Text fades in from a heavy blur into sharp focus.",
  "dependencies": [
    "remotion"
  ],
  "files": [
    {
      "path": "registry/bases/editframe/components/blur-reveal/index.tsx",
      "content": "\"use client\";\n\nimport { Timegroup } from \"@editframe/react\";\nimport type { CSSProperties } from \"react\";\n\nexport interface BlurRevealProps {\n  text?: string;\n  className?: string;\n  blur?: number;\n  fontSize?: number;\n  color?: string;\n  fontWeight?: number;\n  speed?: number;\n  fps?: number;\n  durationInFrames?: number;\n  width?: number;\n  height?: number;\n  background?: string;\n}\n\nexport const BlurReveal = ({\n  text = \"BlurReveal\",\n  className,\n  blur = 10,\n  fontSize = 48,\n  color = \"#171717\",\n  fontWeight = 600,\n  speed = 1,\n  fps = 30,\n  durationInFrames = 90,\n  width = 1000,\n  height = 500,\n  background = \"white\",\n}: BlurRevealProps) => {\n  const safeSpeed = Math.max(0.01, speed);\n  const durationMs = (durationInFrames / fps) * 1000;\n  const revealDurationMs =\n    (((durationInFrames * 0.6) / fps) * 1000) / safeSpeed;\n\n  const containerStyle: CSSProperties = {\n    alignItems: \"center\",\n    background,\n    display: \"flex\",\n    height,\n    justifyContent: \"center\",\n    overflow: \"hidden\",\n    position: \"relative\",\n    width,\n  };\n\n  return (\n    <Timegroup\n      className={className}\n      duration={`${durationMs}ms`}\n      mode=\"fixed\"\n      style={containerStyle}\n    >\n      <>\n        <style>{`\n          @keyframes framecn-blur-reveal {\n            from {\n              opacity: 0;\n              filter: blur(${blur}px);\n            }\n            to {\n              opacity: 1;\n              filter: blur(0px);\n            }\n          }\n        `}</style>\n        <span\n          style={{\n            animation: `framecn-blur-reveal ${revealDurationMs}ms cubic-bezier(0.16, 1, 0.3, 1) backwards`,\n            color,\n            fontFamily:\n              \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n            fontSize,\n            fontWeight,\n            letterSpacing: \"-0.05em\",\n          }}\n        >\n          {text}\n        </span>\n      </>\n    </Timegroup>\n  );\n};\n",
      "type": "registry:component",
      "target": "components/framecn/blur-reveal.tsx"
    }
  ],
  "type": "registry:component"
}