2020-05-04 #javascript #vanilla-js #javascript-framework-diet
Enter & leave transitions
Now that we've built a dropdown list, lets add some transitions to create open & close animations.
2020-05-04 #javascript #vanilla-js #javascript-framework-diet
Now that we've built a dropdown list, lets add some transitions to create open & close animations.
2020-03-05 #javascript #vanilla-js #javascript-framework-diet
On to our first component: a dropdown list. I'm going to walk through the implementation I landed on in a recent project. There are many ways to build dropdowns, and you might want to shape the API your way, so use this post as a source of inspiration.
2020-02-19 #javascript #vanilla-js #javascript-framework-diet
In the previous posts, we've gone through our first few utility functions. We now have enough in our toolbox to move on to our first component. However, where do all these functions belong?
2020-02-13 #javascript #vanilla-js #javascript-framework-diet
After learning how to select elements in the DOM, it's time to zoom into events. This is the third post in the JavaScript Framework Diet series.
2020-02-06 #javascript #vanilla-js #javascript-framework-diet
Lets get warmed up! Before we can get productive, we need two small helpers that we'll be using in most components we'll build from here on. I'm talking about $
and $$
, which are wrappers around document.querySelector
and document.querySelectorAll
.
2020-02-06 #javascript #vanilla-js #javascript-framework-diet
In Selecting elements (part 1) we learned how to select elements from the DOM, and how to find elements inside other elements, both with our own $
and $$
helpers.
In part 2, we're going to review two DOM element instance methods: closest
and matches
.
2020-02-06 #javascript #vanilla-js #javascript-framework-diet
JavaScript frameworks are great, but overused. Adding small bits of interactivity to an interface shouldn't mean installing kilobytes of dependencies or introducing complex build tools.
It's time for a diet. I'm challenging you to build something without a framework, or follow along and learn something along the way.