About this product
Overview
OTP Obsidian v1.1.0 is a dark, frosted-glass OTP animation for landing pages, app previews, videos and demos. Vanilla JS core with React and Vue wrappers plus TypeScript types. No dependencies, no build step needed to use it. The animation plays automatically and loops: light droplets fall into the code boxes and ripple the glass, the card rim charges one segment per digit, the digits implode, a shockwave fires, and the card becomes a glowing orb with a check mark. Then the orb expands back to the card and the loop restarts. This package is the animation. It does not read real input or verify codes.
What is inside
- dist/ - ready to use files (ES module, UMD, CSS, React, Vue, TypeScript types)
- src/ - readable source
- examples/ - standalone.html (double-click to open), index.html (live controls)
- scripts/build.mjs - rebuilds dist/ from src/ (npm run build)
- README.md, LICENSE.txt (License v2), CHANGELOG.md
How to use
Open examples/standalone.html in a browser to see it. Then pick your setup: plain HTML (link the CSS, add a div, load dist/otp-obsidian.js), JavaScript/bundler (import createOtpObsidian), React/Next.js (OtpObsidian from otp-obsidian/react, SSR-safe client component), or Vue 3/Nuxt (OtpObsidian from otp-obsidian/vue). No npm? Copy the files from dist/ into your project and import them by path. API: play(), stop(), restart(), update(), destroy(), onComplete, autoplay. Option length sets 3 to 6 boxes. All CSS is namespaced (.otpo-, --otpo-) so it will not clash with your site styles. No global html/body rules. Multiple instances on one page. Safe for SSR (nothing touches document until mount).
Boundaries
Frontend UI only. No backend, no SMS or verification logic - wire the completed code to your own verify endpoint.
License & Support
License v2: buy once, use for unlimited end products - your own projects and projects you build for clients. No distribution, resale, source sharing, or use as a competing template/UI kit. Full v2 text is included as LICENSE.txt in the sold ZIP.
Included screens / pages
- OTP input demo (index.html)
UI interactions
- Dark obsidian focus state
- Auto-advance to the next box on input
What you get
- dist/otp-obsidian.js (UMD)
- dist/otp-obsidian.mjs (ESM)
- dist/otp-obsidian.css
- dist/react.mjs + react.d.ts
- dist/vue.mjs + vue.d.ts
- dist/index.d.ts
- src/ (readable source)
- examples/standalone.html
- examples/index.html
- scripts/build.mjs
- package.json
- README.md
- LICENSE.txt (v2)
- CHANGELOG.md
Integrations
Frontend UI only. Read the completed code from the inputs and send it to your own verify endpoint.
FAQ
Is a backend or SMS service included?
No. This is the input UI only - connect the completed code to your own verification endpoint.
What does the license allow?
License v2: buy once, use for unlimited end products - your own projects and projects you build for clients. No distribution, resale, source sharing, or use as a competing template/UI kit. Full v2 text is included as LICENSE.txt in the sold ZIP.
Version 1.1.0 · Updated




