misskey
misskey copied to clipboard
Animation for opening/closing content warning
Summary
A small CSS animation (<0.4s) for opening & closing a post with a content warning would make it just feel a bit nicer.
Depending on the kind of animation, it is generally difficult to animate the opening and closing of elements that contain dynamic content and whose height is not known in advance in the CSS.
I think it should be possible to use transition: max-height ...
, I found this example article about it.
I think it should be possible to use
transition: max-height ...
, I found this example article about it.
Box size transitions are known as anti-patterns because they generate a lot of layout recalculation.
I think it should be possible to use
transition: max-height ...
, I found this example article about it.
Sadly, it is well known that max-height does not work well enough: https://dev.to/reegodev/comment/33cg