You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
V4.beta.2 missing transition for progress-bar #24643
@gijsbotje flex basis will cause repaint, just like width.
A transforms scale3d will trigger GPU acceleration and it's the smoother and most performant for this cases. It can dynamically be change with inline styles just like we do width, but we would need an extra div to do it because it'll transform the container of the number. I'll put together codepen with a demo: better show than tell 😄
yeah you're right, i somehow thought flex had support for gpu accelrated transition but can't find anything that says so
using scale3d is the best option, unfortunately you'll need extra markup as you mention.
and did you have an idea how to center that in the progress-bar?
i can't really think of a propper way...
@gijsbotje you are right, I can think of a way to center the value with some extra markup, but it's just too complicated and not practical enough to be in Bootstrap.
To me the options are either remove the animation variable or add the mixin and live with a non performant animation. Since it's a simple animation it's not the end of the world, and browsers are getting better and better at it every day.
Activity
gijsbotje commentedon Nov 2, 2017
@andresgalante @mdo
i could add it back on #24544
andresgalante commentedon Nov 2, 2017
Good catch @tmorehouse it looks like it was remove by mistake.
@gijsbotje I'd create a new PR, try keeping that PR single purpose. Small PRs are easier to review and merge.
@mdo just a thought: animating width is not performant, I am for removing that animation from variables or change it for animating a scale transform.
gijsbotje commentedon Nov 2, 2017
@andresgalante maybe your suggestion to switch to flex-basis could allow for smoother transitions
tmorehouse commentedon Nov 2, 2017
The main thing is to allow it to transition smoothly from say 50% to 80% (i.e. when dynamically updating the "value" of the progress bar).
andresgalante commentedon Nov 2, 2017
@gijsbotje flex basis will cause repaint, just like width.
A transforms scale3d will trigger GPU acceleration and it's the smoother and most performant for this cases. It can dynamically be change with inline styles just like we do width, but we would need an extra div to do it because it'll transform the container of the number. I'll put together codepen with a demo: better show than tell 😄
andresgalante commentedon Nov 2, 2017
Here is a quick example:
https://codepen.io/andresgalante/pen/wPMPqp?editors=1100
But of course we need another div to show the value.
gijsbotje commentedon Nov 3, 2017
yeah you're right, i somehow thought flex had support for gpu accelrated transition but can't find anything that says so
using scale3d is the best option, unfortunately you'll need extra markup as you mention.
and did you have an idea how to center that in the progress-bar?
i can't really think of a propper way...
andresgalante commentedon Nov 3, 2017
@gijsbotje you are right, I can think of a way to center the value with some extra markup, but it's just too complicated and not practical enough to be in Bootstrap.
To me the options are either remove the animation variable or add the mixin and live with a non performant animation. Since it's a simple animation it's not the end of the world, and browsers are getting better and better at it every day.
Restore .progress-bar transition
Restore .progress-bar transition (#24694)
merge after v4-beta3 release