• Post category:StudyBullet-11
  • Reading time:4 mins read


Take animated text to the next level

What you will learn

Draw and style multiline text on HTML canvas

Convert text into animated particle system

Practice vanilla JavaScript and front-end web development techniques

Apply physics and advanced animation techniques

Description

Become a master of web animation.

From drawing a single letter to multiline animated particle text. In this HTML canvas crash course we will go from basics to advanced in a single class. We will cover everything you need to know about using fonts and drawing text on HTML canvas. Let’s explore what’s possible in modern front-end web development and turn text into complex animated particle systems.

Practice vanilla JavaScript with no frameworks and no libraries

Learn how to write creative coding prototypes and experiments in a simple procedural (line by line) codebase. Convert those experiments into a more modular object oriented JavaScript syntax.

Experiment with code

LearnΒ  how to create the base version of the effect with me step by step. Apply constellations algorithm for a completely different visual effect. Learn how to use canvas gradients, custom web fonts and how to change particle shapes and physics to get different visuals and movement.

This technique will also work with company LOGOS, even if the logo is a combination of text, symbols and images.


Get Instant Notification of New Courses on our Telegram channel.


Source code included

With the final lesson you can download the complete source code, as well as some of my experimental variations of the codebase.

From basics to advanced

Basic knowledge of HTML, CSS and JavaScript is required. The first part of the course will be very beginner friendly, we will learn how to set up an HTML canvas, how to draw text using fillText and strokeText built-in methods and we will cover all available tools and techniques to style it.

The second part will cover more advanced algorithms. We will learn how to draw multiline centered text on HTML canvas, how to turn it into particles, how to make those particle systems interactive and much more.

Have fun! πŸ™‚

English
language

Content

Introduction

Introduction

Project

Project setup
CSS & JavaScript positioning tricks
Drawing, styling and positioning text
Wrapping and centering multiline text
How to center a block of text vertically
HTML canvas gradients
Refactoring into object oriented JavaScript
Scanning canvas for pixel data
Converting text into particles
Interactions and physics
Custom fonts
Resizing and responsive design
Particle constellations effect
Dynamic line opacity formula