Skip to content

Conversation

@zipper
Copy link
Owner

@zipper zipper commented Feb 21, 2025

Previously, the delay for the [expanded|collapsed].collapsable events was defined by the fxDuration option. From this version, the delay is automatically detected using the Web Animations API from the box elements. Optionally, you can also detect animations within the subtree of box elements using the eventDelayGetAnimationsWithSubtree option.

The fxDuration option has been renamed to eventDelayTimeout. Since the box may contain elements with infinite animations (or the box itself may have such animations), a hard timeout may be required to ensure that the [expanded|collapsed].collapsable events are dispatched eventually. This timeout can now be set using the renamed eventDelayTimeout option. Default value is undefined, meaning that no timeout is set.

…able` events

Previously, the delay for the `[expanded|collapsed].collapsable` events was defined by the `fxDuration` option. From this version, the delay is automatically detected using the Web Animations API from the box elements. Optionally, you can also detect animations within the subtree of box elements using the `eventDelayGetAnimationsWithSubtree` option.

The `fxDuration` option has been renamed to `eventDelayTimeout`. Since the box may contain elements with infinite animations (or the box itself may have such animations), a hard timeout may be required to ensure that the `[expanded|collapsed].collapsable` events are dispatched eventually. This timeout can now be set using the renamed `eventDelayTimeout` option. Default value is undefined, meaning that no timeout is set.
@zipper zipper merged commit 127c6e7 into master Feb 21, 2025
1 check passed
@zipper zipper deleted the feature-auto-fxDuration branch February 21, 2025 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants