Skip to content

[v4] How to use fade in/out transition from the hidden attribute? #18394

Closed Answered by wongjn
hiroya-uga asked this question in Help
Discussion options

You must be logged in to vote

For fade in, you can use @starting-style via the starting variant. For fade out, you can use transition-behavior: allow-discrete. However, this fade out does not work in Firefox due to allow-discrete not working for display: none.

https://codepen.io/Wongjn/pen/JodxJyR

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@hiroya-uga
Comment options

Answer selected by hiroya-uga
Comment options

You must be logged in to vote
1 reply
@hiroya-uga
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants