Hakim El Hattab / hakim.se

JAVASCRIPT

VISUAL EXPERIMENTS WITH

ABOUT ME

  • Frontend
  • Startups
  • Slides
  • Personal projects
  • Open source

slides.com/hakim/jth/LIVE

CANVAS

DRAWING Basics

var canvas = document.querySelector( 'canvas' );
var context = canvas.getContext( '2d' );

canvas.width = 200;
canvas.height = 200;

context.fillStyle = 'red';
context.fillRect( 100, 100, 10, 10 );

Animation Basics

var canvas = document.querySelector( 'canvas' );
var context = canvas.getContext( '2d' );

canvas.width = 200;
canvas.height = 200;
context.fillStyle = 'red';

var x = 0;

setInterval( function() {
    x = ++x % 200;

    context.clearRect( 0, 0, 200, 200 );
    context.fillRect( x, 100, 10, 10 );
}, 1000 / 60 );

TRAIL

BLOB

Keylight

Sinuous

10k Apart

Constraints

INSPIRATION

EXPECTATIONS

UI

ScROLL FX

MENY

LADDA

Progress Nav

FLIPSIDE

Why side projects?

@hakimel

hakim.se

Slides.com

TIme left?

CHECKWAVE

FOKUS

KONTEXT

HYPNOS

JTH: Visual Experiments with JavaScript

By Hakim El Hattab

JTH: Visual Experiments with JavaScript

  • 2,071