Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Animated collapsible div can be done with 0 line of JS.

https://code-boxx.com/expand-collapse-div-css-only/


Uhh, did you check out how that actually functions? It looks like garbage.


Agreed, this example looks like total shit.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: