Skip to content
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

Static waves #1

Open
delphinas opened this issue Apr 4, 2023 · 3 comments
Open

Static waves #1

delphinas opened this issue Apr 4, 2023 · 3 comments

Comments

@delphinas
Copy link

Hi. Cool project, works well and as intended. I was wondering - is it possible to just keep them static, without regenerating a new wave each time ? Thanks.

@mzebley
Copy link
Owner

mzebley commented Apr 4, 2023

Thank you! Do you mean "keeping them static" in the sense that each time you invoke a Dynamowave, you could set it to always render the same wave shape - regardless of how many times the page is refreshed?

@delphinas
Copy link
Author

Hi, yes, exactly. It would be a cool feature, especially if one could select which one would be static and which ones dynamic!

@mzebley
Copy link
Owner

mzebley commented Apr 4, 2023

What would you find more useful?

  1. Setting a data attribute like "data-wave-static=true" and then it knows to only ever render the first wave from the curated list, or
  2. Specifying a number in a data attribute like "data-wave-static=3" and then it knows to always render the 3rd item in the curated list?

The only downside I can think of to option 2 is how to keep track of how many wave options there are to select from and having to add in error catching for numbers greater than the amount of options.

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

No branches or pull requests

2 participants