All posts in " javascript "
0 Shares

Reactive UI’s with VanillaJS – Part 2: Class Based Components

By seorocket / a few days ago

In Part 1, I went over various functional-style techniques for cleanly rendering HTML given some JavaScript data. We broke our UI up into component functions, each of which returned a chunk of markup as a function of some data. We then composed these into views that could be reconstructed from new data by making a […]

0 Shares

Creating Yin and Yang Loaders On the Web

By seorocket / a couple of weeks ago

I came across a couple such animations a while ago and this gave me the idea of creating my own versions with as little code as possible, no external libraries, using various methods, some of which take advantage of more recent features we can use these days, such as CSS variables. This article is going […]

0 Shares

Managing State in CSS with Reusable JavaScript Functions – Part 2

By seorocket / 3 weeks ago

In my previous article, which shall now retroactively be known as Managing State in CSS with Reusable JavaScript Functions – Part 1, we created a powerful reusable function which allows us to quickly add, remove and toggle stateful classes via click. One of the reasons I wanted to share this approach was to see what […]

0 Shares

Reactive UI’s with VanillaJS – Part 1: Pure Functional Style

By seorocket / 3 weeks ago

Last month Chris Coyier wrote a post investigating the question, “When Does a Project Need React?” In other words, when do the benefits of using React (acting as a stand-in for data-driven web frameworks in general), rather than server-side templates and jQuery, outweigh the added complexity of setting up the requisite tooling, build process, dependencies, […]

1 2 3 12
Page 1 of 12