KanjiVG (Kanji Vector Graphics) provides vector graphics and other information about kanji used by the Japanese language. For each character, it provides an SVG file which gives the shape and direction of its strokes, as well as the stroke order. Each file is also enriched with information about the components of the character such as the radical, or the type of stroke employed.
It is very easy to create stroke order diagrams, animations, kanji dictionaries, and much more using KanjiVG. See Projects using KanjiVG for a growing list of applications of the KanjiVG data.