Skip to content

Wee JavaScript program for running animated SVG Keyshape diagrams with step/run/stop buttons and HTML captions.

License

Notifications You must be signed in to change notification settings

davewhiteland/keyshape-diagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

permalink
/

Keyshape Diagram

See the overview.

JavaScript support for stepping through animated SVG diagrams produced by Keyshape.

  • create diagram in Keyshape with named timeline markers
  • export as SVG (with embedded or external JS)
  • add it to an <object> element with class="ksd"
  • add HTML captions (caption id = timeline marker id)
  • add the KeyshapeDiagram JS (ksd.js) to the page
  • add the styling for the buttons (ksd.css)
  • tweak some options (e.g., layout order of buttons/captions/diagram)
  • optionally add no-JavaScript fallback

What you get:

  • three buttons for stepping, running, and stopping (or resetting) the animation
  • captions displayed as the animation progresses

Files


MIT License: note: example animations may contain embedded JavaScript from Keyshape which is not part of this project.

About

Wee JavaScript program for running animated SVG Keyshape diagrams with step/run/stop buttons and HTML captions.

Topics

Resources

License

Stars

Watchers

Forks