OHZI Components is a library that collects a bunch of standalone Classes to help build high-quality WebGL and WebGPU experiences fast.
This library is a complement of ohzi-core.
- Audio —
AudioManagerplays, fades and mutes the ohzi-core audio clips, andAudioUnlockerresumes theAudioContextafter the first gesture. - FPSCounter — Frames per second, averaged over the last 5 seconds.
- LottieAnimation — Loads a Lottie animation with lottie-web's SVG renderer.
- Modal —
AbstractModalComponentandModalState: one overlay that shows one of several states. - PerformanceController — Disables optional features and adjusts the DPR to keep the framerate up.
- RequestManager — JSON HTTP requests sent from a Web Worker.
- Scroll — Smoothed scroll value from wheel, touch and drag, with free, snapping and step modes.
- TextScrambler — Scramble-reveal effect for an element's text.
- UICollisionLayer — Tracks whether the pointer is over the DOM UI and writes it to
input.over_ui.
MIT