Camera

Original demo by Vincent Hardy, published August 14, 2010.

Open Camera in the gallery

This demo treats an SVG drawing as a set that a camera can travel across. The words of a short saying are placed at very different sizes and angles. Instead of animating each word, the script moves the viewpoint, so the screen swings from a tiny word to a huge one and turns as it goes.

The effect comes from one transform on one group. A small Camera class accepts a list of stops, each with a position, direction, zoom and duration. On every tick it interpolates between two stops with an easing function and writes the result to the group. Events at the end of each stop start smaller local animations, such as the word go dropping into place and the word are being traced with a moving dash.

The name can mislead: nothing here uses a webcam. The code never asks for a camera or microphone.

This restoration keeps the original camera and choreography code. The drum track could not be reused, so the demo now has a visible start control and an optional sound pattern synthesized in the browser. The YUI modules load from this site, and the page scales to small screens. The poster, diagram and video at their old URLs are new captures of this restored version.

This note was newly written for the reconstruction. Read the original post in the Internet Archive.

Topics: Interactivity, Camera, Animation, YUI, Audio