fand / vfx-js

WebGL effects made easy.
https://amagi.dev/vfx-js
626 stars 19 forks source link

feat: add VFXProps.overlay #78

Closed fand closed 2 months ago

fand commented 2 months ago

This PR adds new property: VFXProps.overlay. It allows us to control the opacity of the original element.

By default, VFX-JS hides the original element by setting its opacity to 0. However, in some cases you might want not to hide the original element. overlay allows you to specify the opacity to be set explicitly.

This is useful when you want to show an effect on top of the original element. This could also be used to avoid the scroll rag issue, if the shader is adding some decoration on the element, rather than replacing the element.

Changes

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-vfx-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2024 8:52pm