The treeAnimation property (boolean | "Auto") controls animation when expanding or collapsing task groups.
Declaration
DayPilot.Gantt.treeAnimationDefault Value
trueNotes
trueenables animation and is the default.falsedisables animation."Auto"enables animation unless the system requests reduced motion usingprefers-reduced-motion: reduce.
The "Auto" value is available since version 2026.4.7077; the boolean option predates this version. Use "Auto" to respect the user’s motion preference. Set duration and easing separately using treeAnimationDuration and treeAnimationEasing.
Examples
JavaScript configuration:
const dp = new DayPilot.Gantt("dp", {
treeAnimation: "Auto"
});
dp.init();Angular configuration:
config: DayPilot.GanttConfig = {
treeAnimation: "Auto"
};<daypilot-gantt [config]="config"></daypilot-gantt>React:
<DayPilotGantt treeAnimation={"Auto"} />Vue:
<DayPilotGantt :treeAnimation="'Auto'" />See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot