Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nhinck
· 4y ago · 0 comments
Hmm, I would agree that you can do 95%+ of stuff jQuery used to be used for in vanilla js or html/css in a nicer way but animated collapsible divs still require a stupid amount of js to achieve.
Comments
[–]
iCarrot
4y ago
Animated collapsible div can be done with 0 line of JS.
https://code-boxx.com/expand-collapse-div-css-only/
[–]
nhinck
OP
4y ago
Uhh, did you check out how that actually functions? It looks like garbage.
[–]
ThunderSizzle
4y ago
Agreed, this example looks like total shit.