Skip to content

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

Draft
wants to merge 50 commits into
base: main
Choose a base branch
from
Draft

Andri/wave background #3198

wants to merge 50 commits into from

Conversation

LXIF
Copy link
Contributor

@LXIF LXIF commented Jul 17, 2025

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

Copy link
Collaborator

@lmuntaner lmuntaner left a 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.

@LXIF
Copy link
Contributor Author

LXIF commented Jul 18, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants