-
Notifications
You must be signed in to change notification settings - Fork 152
Andri/wave background #3198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Andri/wave background #3198
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks super cool!
One question, did you consider doing it with ?
I'm thinking that for some of the other examples (like the matrix one) a canvas would be better suited and I wonder whether we could use have always one canvas background and change the animation there.
I think that regarding performance with the current example the DOM manipulation is fine, but I was wondering how you decided to do it with DOM elements.
I replaced it with SVG for now - canvas is also a possibility but unfortunately a bit finicky at times, especially if you want to get pixel-perfect rendering on all screens. But refactoring for canvas should not be too hard if we do decide for it. SVG still has performance benefits over divs without the overhead and imperative style of canvas. |
Motivation
We want to add some flair.
Changes
Build preliminary wave background. Demo available at
http://localhost:5173/fancy-backgrounds/wave-grid
Screen.Recording.2025-07-17.at.18.33.44.mov