Javascript

Latest Posts

The Pros and Cons of CSS in JS

Jarod Peachey
12/27/2020

CSS-in-JS, or CSS inside Javascript files, has been one of the most popular methods of front-end development over the last few years. With the rise of front-end frameworks, static site generators, and Javascript in general, it’s hard not to use CSS-in-JS.

But should you use it?

JSS certainly has it’s be...

How To Create a Fixed Header on Scroll

Jarod Peachey
12/27/2020

One of the great things about Javascript is the DOM, or Document Object Model. The DOM is what allows Javascript to access the HTML element on the page, and modify or remove them.

Combined with event listeners, we can do some awesome stuff with Javascript. One of these things is animating a sticky header when the window is scrolled.

![enter ima...

Styled Components in 5 Minutes

Jarod Peachey
12/27/2020

Let's get right to it. CSS has become a bit of a weird "language" lately, with the rise of front-end frameworks. You can write it in CSS files and import it, or use CSS modules, or even inline-styling. You can even write CSS directly in javascript files.

Each option has it's pros and cons, but today we're looking at my personal favorite option, ...