Learn JavaScript for Designers

Bring your websites to life with interactive elements using JavaScript. These tutorials are tailored to web designers and are full of practical examples and tips.

All JavaScript for Designers tutorials:

  1. How to Create a “Sticky” Floating Video on Page Scroll

    How to Create a “Sticky” Floating Video on Page Scroll

    Tutorial Intermediate

    In this tutorial I’m going to show you how to recreate a “Sticky” Floating Video; something you may have seen on media websites, video platforms, and social...

  2. How to Track User Behavior With Google Analytics Events

    How to Track User Behavior With Google Analytics Events

    Tutorial Intermediate

    In this tutorial I’ll show you how to leverage the Google Analytics Event Tracking API (what a long name!) to find out how visitors use and interact with...

  3. Performance Enhancement: How to Load Images Using in-view.js

    Performance Enhancement: How to Load Images Using in-view.js

    Tutorial Intermediate

    In this tutorial I’ll show you how to improve the performance of your web pages by using in-view.js. This JavaScript library reports back when something has...

  4. Designers, We Need to Talk About Development

    Designers, We Need to Talk About Development

    Tutorial Beginner

    In this series, we’ll discuss how to navigate the elusive rabbit hole that designers often find themselves in when dealing with developers on creative projects.

  5. Who Needs AMP? How to Lazy Load Responsive Images Quick and Easy With Layzr.js

    Who Needs AMP? How to Lazy Load Responsive Images Quick and Easy With Layzr.js

    Tutorial Intermediate

    Lazy loading allows a visitor to start engaging with content sooner, and the enhanced load speed can boost your search engine rankings. The more images you...

  6. How to Code a Scrolling “Alien Lander” Website

    How to Code a Scrolling “Alien Lander” Website

    Tutorial Intermediate

    In this tutorial, the second in a two part series, we’ll be taking the awesome vector-based illustration produced in How to Create a Long Scrolling...

  7. How to Create a Web Component for Embedding YouTube Videos

    How to Create a Web Component for Embedding YouTube Videos

    Tutorial Advanced

    In this tutorial we are going to create a fully-functioning custom HTML element using “Web Components”.

  8. How to “Lazy Load” Embedded YouTube Videos

    How to “Lazy Load” Embedded YouTube Videos

    Tutorial Intermediate

    In this tutorial I’ll explain how to “lazy load” multiple embedded YouTube videos. Doing so will improve the performance of our initial page load, and hand...

  9. Form Design: How to Automatically Format User Input

    Form Design: How to Automatically Format User Input

    Tutorial Intermediate

    In this tutorial you’ll learn how to format, real time, user input in a form field. As a user types something into an input field the value will be adjusted...

  10. How to Create a Fixed Header Which Animates on Page Scroll

    How to Create a Fixed Header Which Animates on Page Scroll

    Tutorial Beginner

    In this tutorial, we’ll learn how to create a pattern seen on many websites these days: a fixed header which animates to a less obtrusive state as we scroll...

  11. How to Animate a Coffee-Drinking Sprite With ScrollMagic

    How to Animate a Coffee-Drinking Sprite With ScrollMagic

    Tutorial Intermediate

    Creating scroll-initiated motion can be immensely gratifying. We’ll be diving into a particular effect seen on the Casper Mattress website (created by Jonnie...

  12. How to Build an Infinite Scroll Experience With the History Web API

    How to Build an Infinite Scroll Experience With the History Web API

    Tutorial Advanced

    In this tutorial we are going to reinforce our History Web API skills. We’re going to build a UX pattern on the Web which is loved and loathed in equal...