All examples By author By category About

cloudshapes

AttrTween, Transitions and MV* in Reusable D3

AttrTween, Transitions and MV* in Reusable D3

An example of using attrTween & transitions whilst writing reusable D3.

The code uses three instances of a data module to hold onto and manipulate the data used to drive the patterns, and one instance of a "manager", which handles the creation and manipulation (i.e. the classic enter, update, exit) of the actual visual pattern.

Full write-up, split across two blog posts, at "Using AttrTween, Transitions and MV*" on the Safari Books Online Blog.