Category: Javascript

Smooth scrolling to elements with JavaScript (no jQuery)

Smooth scrolling to elements with JavaScript (no jQuery)

Here’s a quick snippet of JavaScript to scroll to elements on your webpage smoothly. This example is in vanilla JavaScript and does not require jQuery to work correctly. Let’s say you have a page with similar markup to the snippet below.

When a user clicks your links, you would […]

Add animated gradients to your website with javascript | Granim.js

Add animated gradients to your website with javascript | Granim.js

If you want to add beautiful, animated gradients with Javascript to your website, look no further than Granim.js Granim.js is an incredibly lightweight (less than 10kb!) Javascript library. It allows you to create fluid and interactive animated Gradients. It does this simply and intuitively. You can install the Granim.js library using […]