EQWorks / lumen-labs

React library of basic components based on Tailwind CSS
https://eqworks.github.io/lumen-labs
5 stars 2 forks source link

[G2M] - Add progress bar for Toast component #77

Closed kc-leung closed 2 years ago

kc-leung commented 2 years ago

fix #70

sallkall commented 2 years ago

Need to smooth out the progress bar a bit more right now it is very choppy. Some ideas:

the animation looks fine during a short countdown I guess this choppy issue is only relevant for 10 seconds ish durations

kc-leung commented 2 years ago

Need to smooth out the progress bar a bit more right now it is very choppy. Some ideas:

the animation looks fine during a short countdown I guess this choppy issue is only relevant for 10 seconds ish durations

mmm right, Let me try using keyframes (animation) so it forces the browser to use the GPU instead of CPU maybe it will look smoother

kc-leung commented 2 years ago

@hyx131 It is almost the same, actually sometimes looks worse when the pc is lagging so I will just keep it this way you can just review it

github-actions[bot] commented 2 years ago

📚 Storybook preview (updated to 2ae4c8001eab144115bc83f1d419258c250796d9)