robbschiller / movement

Sass/SCSS/CSS animation framework for creating, composing, sequencing, and using animations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Movement

SCSS animation framework for creating, composing, sequencing, and using animations.

Conforms (as closely as possible) to the W3C Web Animations spec.

Please see the design document.

Current status: Design/Architecture

// Simple animations
.foo {
  @include m-animate((left: 300px), 3000ms);
  
  // Animate .foo on hover
  @include m-animate((color: green), 0.5s);
}

// Keyframe effects
.bar {
  $effect-1: m-keyframe(&, (top: 200px), 1s);
  $effect-2: m-keyframe(&, (opacity: 0.5), 0.5s);
  
  &.active {
    @include m-play($effect-1);
  }
  
  &.inactive {
    @include m-play($effect-2);
  }
}

About

Sass/SCSS/CSS animation framework for creating, composing, sequencing, and using animations.


Languages

Language:CSS 98.5%Language:JavaScript 1.1%Language:HTML 0.5%