Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

HTML5 History of 20th Century Music

DZone's Guide to

HTML5 History of 20th Century Music

· Web Dev Zone
Free Resource

Learn how to build modern digital experience apps with Crafter CMS. Download this eBook now. Brought to you in partnership with Crafter Software

We've seen some neat interactive HTML5 infographics before -- but the periodic table, for example, doesn't really care that much about time.

Visual representation of time introduces numerous complications. Traditional ways of representing time visually were, roughly speaking, translations of dimension-type, from temporal to spatial; the mapping selected would depend on what kind of temporal relation was meaningful for the particular application. For example, circles represent cyclical behavior; lines represent development; trees represent evolutionary history; and so forth.

New media change the game profoundly: 'visual representation' no longer means static snapshots. Time is represented temporally, so the time-visual mapping doesn't necessarily need to happen. Causal influence is keyed to time but, of course, temporal sequence is not sufficient for causality; so even an animated visualization of history, especially of historical development, needs to show both time and causal influence, distinctly.

For this kind of representation, animation-happy HTML5 Canvas is a perfect choice. Take a snapshot from this awesome HTML5 project, showing the history of 20th century (dance) music:


The screenshot doesn't do the canvas justice, because the animation is essential. (The page title is, appropriately, not just 'the history', but 'the evolution of western dance music'.)

From a code point of view, the most interesting file is InfoGraphic.js -- which includes some nice, relatively simple code to draw cubic bezier curves. (CSS transitions can specify cubic bezier timing functions all by their CSS lonesome, though -- though of course for this project, which uses Canvas, JavaScript makes more sense.) Notice also how the curves change color when a new musical genre appears -- a clever design decision that makes the evolutionary pathways clearer, at least until the 1980s.

Worth checking out for HTML5 reasons, but kinda fascinating info about music history, too.

Crafter is a modern CMS platform for building modern websites and content-rich digital experiences. Download this eBook now. Brought to you in partnership with Crafter Software.

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}