-
Notifications
You must be signed in to change notification settings - Fork 25
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
Skill button component #155
Comments
|
So I am at the point where I am looking how to deal with things like preparation and cooldown animation and I have some questions about how this is going to be implemented and I will likely need some help converting the 'animations'. Am I right in thinking that this component will be receiving a stream of state objects over time? If so, the animations in the codepen example won't be used as is, but rather the component will need to render the button at a particular point in time, say a cooldown at current 3.5 ending at 10.0 so the circular arc that is rendered would be 126deg. Next state might be current 4.0 ending 10.0 so the arc would then be 144deg. We can use a transition to smooth out the movement like we did for the patcher progress bar. So what I need to do is work out what CSS is needed to represent that arc, if that's even possible. Or should I be adjusting the paths instead? |
Develop a skill button component with functionality as described in the examples here: https://codepen.io/codecorsair/pen/2d8b6a39249e97d71bff5f5b9199e629?editors=0010
This component should accept a skill state as a prop which will be used to define what is displayed by the button. A first pass example of the states for the skills are as follows
The text was updated successfully, but these errors were encountered: