// Restore each collapsed compound parent’s descendants by reversing its currently applied scale around the parent’s current centre
eles.expand(timing?: Pick<AnimateOptions, 'duration' | 'easing'>): thisRestore each collapsed compound parent’s descendants by reversing its currently applied scale around the parent’s current centre. Pass { duration, easing } to animate the restoration; without options, the operation is immediate.
| Name | Description |
|---|---|
timing: Pick<AnimateOptions, 'duration' | 'easing'>? | optional animation duration and easing |
Returns
thisthis collection, for chaining
Example
const parent = cy.add({ data: { id: 'parent' } });cy.getElementById('a').move({ parent: 'parent' });parent.collapse();parent.expand();console.log(parent.collapsed()); // false