Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.35 KB

README.md

File metadata and controls

22 lines (16 loc) · 1.35 KB

OHZI Components

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.

Documentation

  • Audio — AudioManager plays, fades and mutes the ohzi-core audio clips, and AudioUnlocker resumes the AudioContext after 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 — AbstractModalComponent and ModalState: 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.

License

MIT