Capítulo 266 de 411

Chapter 266: MorphSVGPlugin.defaultType

Core Idea

Sets the default morph algorithm for all MorphSVG animations — "linear" (default) or "rotational", which can produce a more natural-looking morph for certain shape pairs.

Code Examples

MorphSVGPlugin.defaultType = "rotational";

Connects To

  • MorphSVGPlugin (morphSVG tween, type option): can also be set per-tween instead of globally.