The Animation Modules
SMIL 2.0 supports animation functionality and splits the animation modules into a BasicAnimation module and a SplineAnimation module. The two modules contain elements and attributes that define how an animation is to be incorporated on a timeline. As you can probably anticipate, the animation modules are included only in language profiles that require animation functionality.
Animation depends on the BasicInlineTiming module, which is one of the Timing modules.
The BasicAnimation Module
Listing 24.7 shows a simple animation using a SMIL 2.0 animation element within a referenced SVG image.
Listing 24.7. Incorporating an SVG Image That Uses a SMIL Animation Element (AnimTest.smil)
<smil> <head> <meta name="title" content="*** ... |
Get Special Edition Using XML, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.