Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome, Safari or Firefox browser.


Yehor Lvivski


@lvivski

Everything Animated 2

The Matrix strikes back

Animation is the rapid display of a sequence of images to create an illusion of movement.

Wikipedia

History

Apple


1998 2001

JavaScript

$.fn.animate()

CSS

Transforms

CSS Transforms

3D Transforms

Transitions

        transition:  [
          <property> ||
          <duration> ||
          <timing-function> ||
          <delay> ]
      

CSS Transitions

Transition example

Animations

        animaton:  [
          <animation-name> ||
          <duration> ||
          <timing-function> ||
          <delay> ||
          <iteration-count> ||
          <direction> ||
          <fill-mode> ]
      

CSS Animations

Easings

Keyframes

        @keyframes animation-name {
        0%, 100% {...}
        from, to {...}
        50% {...}
        }
      

Animations Examples

Vexel

Canvas

Canvas is Bitmap

Canvas

Isomer

Control

setTimeout
requestAnimationFrame
rAF rAF (optimized)

CSS animations, Bad parts

anima.js

matrix

How it works

      matrix3d(
        1, 0, 0, 0,
        0, 1, 0, 0,
        0, 0, 1, 0,
        0, 0, 0, 1
      )
      

scale and translate

      matrix3d(
        sX,   0,   0, 0,
          0, sY,   0, 0,
          0,   0, sZ, 0,
        tX, tY, tZ, 1
      )
      
      matrix3d(
        cos(Y)cos(Z),
        cos(X)*cos(Z)
        +sin(X)sin(Y)cos(Z),
        sin(X)sin(Z)
        -cos(X)sin(Y)cos(Z), 0,
        ...
      )
      

Decomposition

Matrix decomposition


Thanks


lvivski