Skip to content

Instantly share code, notes, and snippets.

View joyrexus's full-sized avatar

J. Voigt joyrexus

View GitHub Profile
@joyrexus
joyrexus / README.md
Last active December 24, 2015 17:39
Compound animation events

Simple demo of a compound animation controlled by mousemove events. Here, each of the two coordinates of a mouse move control distinct elements. Note how the y-coordinate delta scales both circle and radial line and simultaneously rotates this same radial line. The x-coordinate delta merely slides a 20-pixel circle along the horizon.

@joyrexus
joyrexus / README.md
Created October 7, 2013 19:29
Random walking bug
@joyrexus
joyrexus / README.md
Created October 7, 2013 19:35
Random walking bug
@joyrexus
joyrexus / base.coffee
Last active December 25, 2015 00:28 — forked from ryanflorence/Base.coffee
CoffeeScript base class
class Base
###
Provides default options, mixins, and custom events.
###
defaults: {}
constructor: (options) ->
@setOptions options
@joyrexus
joyrexus / README.md
Last active December 25, 2015 00:39
Nonlinear anecdote

Extraction/conversion of a plotting visualization -- the nonlinear anecdote -- from @worrydream's Kill Math noodlings.

See also Evan Miller's response, Don't Kill Math.

@joyrexus
joyrexus / README.md
Last active December 25, 2015 05:19
Bouncing ball
@joyrexus
joyrexus / README.md
Last active August 13, 2018 14:20
Animated paths

Animated path drawing/erasing.

See Jake Archibald's article for more details.

@joyrexus
joyrexus / README.md
Created October 11, 2013 17:24
Flip path on click

Quick demo of a simple CSS transition and transform. See Animating CSS Transitions for an overview.

The container sets the animation's perspective and the inner pane is the element that actually flips, rotating 180 degrees around the Y-axis when the parent container is clicked.

Note that we're only using the -webkit vendor prefix, so this is only going to work in WebKit browsers.

@joyrexus
joyrexus / README.md
Last active December 25, 2015 07:59
Move bug along path

Animate the movement of a bug along a path.

Demonstrates how to use the getTotalLength and getPointAtLength methods on SVG path elements to interpolate a point along an existing path.

Built with svg.js and inspired by @mbostock's much slicker D3-variants, here and here

@joyrexus
joyrexus / README.md
Created October 13, 2013 00:35
Animate path of bug along a curve

Animate the movement of a bug along a curve while tracing/erasing path.

Demonstrates how to use the getTotalLength and getPointAtLength methods on SVG path elements to interpolate a point along an existing path ... as well as how to animate the path using "stroke-dash interpolation", previously demo-ed here.

Built with svg.js and inspired by @johan's much slicker D3-variant. Also check out @mbostock's Stroke Dash Interpolation block.