This repo shows a simple implementation of the mask effect with an added interactive feature that moves the mask with the mouse position.
Vite.+.React.and.15.more.pages.-.Personal.-.Microsoft.Edge.2024-10-10.00-02-34.mp4
- Clone the repo.
cdto root maskeffect.npm install.npm run devafter installing dependencies to run dev server.
Note
Current version of chrome doesn't support
mask-repeatfully so this might show up as multiple masks. Edge browser works better with this feature. Developers working on this can trywebkit-mask-repeat