jacobcollinsdev

HomeBadges

Create a Pop-Up Modal with CSS & JavaScript

Oct 15, 20207 min read

Pop up modals are a great way of providing additional information to users without taking up any extra space occupied by your main content. Amongst other things, they can be used for displaying game settings, gathering user data (such as an email add...

How to Toggle Dark Mode

Sep 7, 20204 min read

Dark mode is a really cool feature that's typically used to switch between a "light" and "dark" version of your website, and it's surprisingly simple to implement. To achieve this feature, you need to create additional CSS classes that will contain t...

Understanding the 'this' Keyword in JavaScript

Aug 25, 20203 min read

The this keyword in JavaScript refers to the owner of a function. You can also see it as the object that a function is contained in. Where that function is declared determines what this means. This blog post is going to look at what this means and ho...

Toggle Classes On Click Using JavaScript

Aug 10, 20203 min read

Changing the appearance of HTML elements when a user performs an action (for example, by clicking on a button) is one of the easiest ways we can add interactivity to our projects. In this tutorial, we are going to build a simple project that will cha...

Create a Flip Card Using CSS

Jul 28, 20204 min read

Flip cards are a great way to inject some fun into your website or application whilst simultaneously improving the user experience for your visitors. It's also really simple: all you need is four HTML div elements and 5 CSS rules. In this tutorial, w...

© 2021 jacobcollinsdev

PrivacyTerms
Proudly part of