You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: Add animation to hide method
This change introduces an animation to the `hide()` method, making the annotation disappear with a reverse animation of the `show()` method.
Previously, `hide()` would immediately remove the annotation's SVG elements from the DOM. This change modifies the `hide()` method to:
- Play the `show()` animation in reverse.
- Use `requestAnimationFrame` to ensure the animation restart is smooth.
- Use `setTimeout` to remove the SVG elements only after the animation has completed. This prevents race conditions when `show()` is called again while a `hide()` animation is in progress.
This addresses issue #57.
* feat(demo): Add demo.html for local testing
This commit adds a `demo.html` file to showcase the animated `hide()` functionality. This allows for easy local testing and verification of the feature.
* fixup implementation to actually work
* remove console log
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
0 commit comments