July 8, 2020 09:29 pm GMT
Original Link: https://jvns.ca/blog/2020/06/19/a-little-bit-of-plain-javascript-can-do-a-lot/
A little bit of plain Javascript can do a lot
I decided to implement almost all of the UI by just adding & removing CSS classes, and using CSS transitions if I want to animate a transition.
An awful lot of the JavaScript on sites (that aren’t otherwise entirely constructed from JavaScript) is click the thing, toggle the class which is why jQuery was so good and libraries like Alpine.js are finding happy developer audiences.
I once did a screencast called “Hey designers, if you only … Read article “A little bit of plain Javascript can do a lot”
The post A little bit of plain Javascript can do a lot appeared first on CSS-Tricks.
Original Link: https://jvns.ca/blog/2020/06/19/a-little-bit-of-plain-javascript-can-do-a-lot/
Share this article:
Tweet
View Full Article