soidesmax®
START HERE

Installation & setup

Requirements, commands and the first steps for this template.

Version 1.1.0

Unzip, open examples/standalone.html in a browser to see it, then copy the dist/ files into your project (or import from the package). Plain HTML: link dist/otp-obsidian.css, add a div with id otp, load dist/otp-obsidian.js, call OtpObsidian with code 2580. Bundler/React/Vue: import from otp-obsidian, otp-obsidian/react or otp-obsidian/vue plus the CSS. Rebuild dist/ from src/ with npm run build. The background behind the animation must be black or very dark for the glass look to work.

USE IT IN YOUR PROJECTIncluded stack: HTML + CSS + JavaScript + TypeScript + React + Vue

Follow the included README first. These steps apply to the technologies listed for this product.

  1. Open the included HTML page and identify the markup for the section you need.
  2. Link the supplied CSS and JavaScript files, preserving the demo’s loading order.
  3. Copy its images and other assets with the same relative paths; test interactions and mobile layout.
A CLOSER LOOK

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

BEFORE YOU GET STARTED

License & Support

One license. Unlimited projects.

One purchase covers unlimited end products for you and your clients. Customize the design and code, and use it in commercial projects.

You may not share, resell or redistribute the template or its source.

Updates
All v1.x updates included.
Support
Bugs and setup, within 2 business days.
Full license terms
**License** One purchase of this template covers **unlimited end products** — your own projects and projects you build for clients. You may use it in commercial client work, change the design and code, and ship it as part of your products, as many times as you like. The license belongs to the buyer (one person or one company). People working for the buyer on the buyer's projects may use it under the same license. You may not redistribute, resell, share, or sublicense the template itself or its source files, in whole or in part — whether standalone, bundled with other files, free, or paid. You may not use it to create a template, UI kit, or component library that competes with this product. **Updates:** all v1.x updates are free — re-download the latest files from your purchase email whenever a new version is released. **Support:** bug fixes and setup help within 2 business days, via support@soidesmax.com. The terms above are the terms in force at the time of your purchase and stay valid for that purchase, even if the license terms change later.
Read Template License v2