luukdv / gooey-react

The gooey effect for React, used for shape blobbing / metaballs (0.5 KB) 🧽

Home Page:https://gooey-react.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preview

The gooey effect for React

The 'gooey effect' has been made popular by various (amazing) blogposts over the years. This tiny component makes it easy to use within React, and has improved the implementation. It's optimized to be as sharp/crisp as possible, since existing implementations can be a bit blurry. Safari support (which can be notorious, and is usually missing) has been added as well.

Installation (~0.5 KB)

npm install gooey-react

Usage

import Goo from 'gooey-react'

<Goo> … </Goo>

You can put regular HTML elements inside Goo, but using an SVG is recommended for better browser support. Shape blobbing will be applied to everything within the component.

Visit the website for full documentation, properties and examples.

About

The gooey effect for React, used for shape blobbing / metaballs (0.5 KB) 🧽

https://gooey-react.netlify.app

License:MIT License


Languages

Language:TypeScript 88.0%Language:JavaScript 12.0%