-
Notifications
You must be signed in to change notification settings - Fork 0
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
Every Animation Lover Needs A Control Panel #10
Comments
I'm a big fan of doing animation with codes, it's part of the reason I choose front-end to start my career years ago. In every stage of the coding, there will always be a bunch of parameters to adjust, with a control panel on the screen, we could check out the output without changing the codes now and then.
There are so many wheels in this area, I'll show you why and how I did this one. The ProblemI built a library called fire-flame which will generate a flame animation on canvas. And it supports many parameters including a 2d vector which indicates the wind force applied to the flame. To control the wind, I build this panel. 1. No
|
Element | Screenshot | Varient | Description | Live Demo |
---|---|---|---|---|
ctrl-panel | ------- | ------- | The root element. | demo |
ctrl-group | ------- | ------- | Group ctrl-* together to shape the value. | demo |
ctrl-slider | ![]() |
![]() |
A numblic slider. | demo |
ctrl-clamp | ![]() |
![]() |
Select a tuple low-high value. | demo |
ctrl-switch | ![]() |
![]() |
A ON/OFF switch. | demo |
ctrl-radio | ![]() |
![]() |
Multiple/Single switch. | demo |
ctrl-vector | ![]() |
Select a tuple vector on a 2D surface. | demo | |
ctrl-text | ![]() |
Text input. | demo | |
ctrl-color | ![]() |
Color picker. | demo |
Well, hope you enjoy it. I'll see you next time.
@9am 🕘
The text was updated successfully, but these errors were encountered: