Re:Gov.uk drops jQuery from their front end
by have_faith on Thursday May 19, 2022 @10:52AM
(#31435432)
Can CSS transitions and animations handle animating to auto height/widths yet?
[ Parent
| on HN ]
Re:Gov.uk drops jQuery from their front end
by d1sxeyes on Thursday May 19, 2022 @11:31AM
(#31435997)
I don't think so. One trick I've used to good effect is setting an high max-height, then translating by 100% and removing pointer events.
Re:Gov.uk drops jQuery from their front end
by flatcakes on Thursday May 19, 2022 @11:37AM
(#31436095)
I feel like this solution feels subtly "wrong" if you're animating, because that high max height will be arbitrarily far away from where you'd normally want to animate to. Doubly so for easing out.