1.0.1 • Published 5 months ago

@ondo-graphics/waves v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Example Gif

ondo-graphics

Create fluidly moving assets for modern websites with ease.

In the world of web design, static shapes are plenty, but achieving fluid and dynamic motion often requires specialized solutions. This package aims to bridge that gap, making it effortless to infuse vitality into any modern website.

Features

  • Zero Dependency: The package includes everything needed to function, eliminating concerns about additional dependencies.
  • Compact Size: At around 10kb gzipped, it ensures optimal website performance.
  • Framework Compatibility: Engineered to seamlessly integrate with popular frameworks including Vanilla JS, React, Vue, Svelte, and more. It offers dedicated components tailored to each framework.
  • TypeScript-based: The entire package is crafted using TypeScript, enhancing type safety and developer experience.

Installation

Copy the following script tag into the <head> of your HTML document:

<script
  src="https://unpkg.com/@ondo-graphics/waves@latest/dist/waves.js"
  type="module"
></script>

For framework-specific installation see React

Usage

Customize your coponent using the configurator. Then, integrate the generated code snippet into your HTML markup:

<og-waves
  background="rgba(0, 0, 0, 1)"
  distribution="[4,5]"
  speed="2"
  complexity="2"
  synchronicity="5"
  amplitude="1"
  waves="[{'fill': {'color': 'rgba(233, 255, 0, 1)'}},{'fill': {'color': 'rgba(0, 0, 0, 1)'}}]"
></og-waves>

Contributing

Contributions are highly appreciated! Should you encounter any issues or have suggestions for enhancements, please don't hesitate to reach out.

Support

Creating and maintaining this project requires substantial effort. If you find it valuable, consider showing your support by buying me a coffee.

License

Ondo-Graphics is licensed under the MIT License.