Skip to content
项目

关于

React 的 gooey 效果,用于实现形状融合 / metaballs(0.5 KB)🧽

创作与媒体

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

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.

探索相关项目

加载中…