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
After spending the afternoon on this, I am stumped on how to do the animation of the comments button fading in and out. The situation:
As an editor gutter decoration, I can choose which css classes get added to the HTML element that gets added for my decoration.
My decoration doesn't use :hover, instead when the whole line is hovered it shows. This is achieved by being an editor decoration that get's added/removed as needed.
I can create a transition when the element is added to the dom using @starting-style ✅
I can't come up with a way to fade the element out when the line is un-hovered, as the dom element is simply removed. ❌
Similarly, to make the fade in look nice the commenting range vertical line would also need to fade out when it's removed, which has the same problem. ❌
For my own reference later, this is what I can do for the fade-in
See here:
Since both components are very similar, why not align them:
The text was updated successfully, but these errors were encountered: