Use animation on check uncheck flex display property?

If I wanted to animate the transition from displaying and not displaying a component in a flex container when the display property is changed, how would I go about it in my css theme?

And how would I target this to only certain flex containers?

display doesn’t support CSS transitions:

That’s a bummer!

In case anyone is still trying to look at a way to do this I managed to achieve using CSS transitions by instead utilising a relative x y coordinate container and changing the x/y values of the component along with setting a style for “transition: all 0.5s linear”

you can use opacity