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
With any version of lottie-player we have used up to the current 2.0.2, controls are either on or off.
We would like to fade the controls in on :hover, :focus, and :focus-within and then back out.
Currently, the only way we see to do this without pushing code into the shadow dom is to define the control colors as transparent, and then change them on hover and focus:
But this is suboptimal because it just blinks in or out. Doing it this way is difficult to make into a smooth transition cross-browser, potentially requiring keyframe animations based on being able to define the opacity as a number using the css property at-rule.
So, we have been pushing a simple hover transition from opacity 0 to 1 and back via JS. But it would be nice not to hack at your code to do this smoothly, ex:
With any version of lottie-player we have used up to the current 2.0.2, controls are either on or off.
We would like to fade the controls in on
:hover
,:focus
, and:focus-within
and then back out.Currently, the only way we see to do this without pushing code into the shadow dom is to define the control colors as transparent, and then change them on hover and focus:
But this is suboptimal because it just blinks in or out. Doing it this way is difficult to make into a smooth transition cross-browser, potentially requiring keyframe animations based on being able to define the opacity as a number using the css property at-rule.
So, we have been pushing a simple hover transition from opacity 0 to 1 and back via JS. But it would be nice not to hack at your code to do this smoothly, ex:
The text was updated successfully, but these errors were encountered: