A lightweight JavaScript library that adds device-tilt-responsive shiny reflections to text, backgrounds, and borders on mobile websites.
Shiny is a lightweight JavaScript library that adds dynamic, tilt-responsive shiny reflections to text, backgrounds, and borders on mobile websites. It uses the DeviceMotion API to create interactive visual effects that respond to device movement, enhancing user engagement with subtle visual feedback.
Frontend developers and designers building interactive mobile websites who want to add engaging, device-aware visual effects without significant performance overhead.
Developers choose Shiny for its simplicity, small footprint (under 1kB), and ability to create unique, interactive visual effects that respond to device tilt, offering a distinctive user experience compared to static CSS effects.
🌟 Shiny reflections for mobile websites
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Minified and gzipped size is under 1kB, ensuring minimal performance impact on mobile sites, as highlighted by the bundlephobia badge in the README.
Leverages DeviceMotion API to create dynamic, tilt-responsive reflections that enhance user engagement on supported devices, aligning with its core philosophy.
Supports applying effects to text, backgrounds, and borders with configurable linear or radial gradients and optional noise patterns, offering diverse visual customization.
API consists of a single shiny() function with straightforward configuration, making it easy to implement without complex setup, as demonstrated in the usage examples.
Project development is on hold due to iOS 12.2 disabling DeviceMotion API in Safari, limiting future updates and compatibility, as warned in the README.
Landscape orientation issues are unfixed and Android compatibility is untested, reducing reliability for cross-platform use, per the Todo section.
Effects rely entirely on DeviceMotion events, which are restricted or unsupported on many browsers and devices, potentially breaking functionality for users.