Currently browsing JavaScript

Top Bar Countdown
Ciprian on Thursday, November 25, 2021 — 432 Views

How to add a top bar countdown for your next product sale

You can (probably) see this top bar righ now, with a nice 30% off sale for my WordPress Lighthouse plugin. And this is how I built it, [...]

Vanilla JavaScript Draggable Carousel
Ciprian on Thursday, October 21, 2021 — 1,029 Views

How to Create a Draggable Carousel using Vanilla JavaScript

A few months ago I added a new, fancy JavaScript carousel to my homepage. It looked and behaved great, but it caused a massive CLS [...]

JavaScript Canvas Blob
Ciprian on Wednesday, October 6, 2021 — 657 Views

Canvas JS: Big Ball of Particles

For a while now, I had this animated, constantly exploding ball of particles on one of my landing pages. Built using JavaScript and Canvas, [...]

Ciprian on Thursday, May 20, 2021 — 1,990 Views

JavaScript Drag & Drop

Here’s a nice list of plain JavaScript dragging and dropping solutions. They are minimal, as they serve as proof of concept, and they [...]

Ciprian on Monday, May 17, 2021 — 1,582 Views

JavaScript Character Counter for Text Areas

A while ago, I had to implement a character counter for a business listing directory. The description field was supposed to hold about 400 [...]

Carbon: Basic Syntax Highlighting
Ciprian on Tuesday, May 11, 2021 — 1,557 Views

Carbon: Basic Syntax Highlighting with Zero Overhead Using JavaScript

If you have ever used PrismJS or CodeMirror or any other syntax highlighter solution, you’ll know it adds lots of dependencies bases [...]

JavaScript Post Carousel
Ciprian on Tuesday, April 27, 2021 — 1,555 Views

How I Created My Homepage JavaScript Post Carousel

My homepage now features a JavaScript section of 4 featured posts. Notice the official JavaScript yellow colour ? Here’s how I did [...]

Ciprian on Monday, April 26, 2021 — 1,991 Views

🍪 How to Expire localStorage Items and Replace Cookies

I don’t use 🍪 cookies anymore, I think they are too… rigid. I use localStorage items. By default, they don’t expire [...] npm Stats
Ciprian on Tuesday, April 6, 2021 — 1,853 Views takeover and update

I have been using the library on 200+ WordPress websites for more than 2 years. That number is growing, as the product is a [...]
Ciprian on Tuesday, March 30, 2021 — 78 Views

HTML Select Fields as beautiful as never before is back: Create beautiful, functional and extensive (Multi) Select Fields with [...]

Ciprian on Friday, March 12, 2021 — 2,045 Views

How I added a neat effect in 30 lines using IntersectionObserver

This is something I’ve always wanted to add to my theme, but I was afraid of the impact on the Core Web Vitals. As you scroll down, [...]

Ciprian on Tuesday, February 9, 2021 — 5,127 Views

How to Get and Set Query Parameters From URL

Here’s two ways to get (and set) query parameters from URL. I’ll add some real life examples in order to understand their [...]

Privacy Policy