Skip to content

Releases: alexmacarthur/slide-element

Dependency Updates

11 Dec 06:50

Choose a tag to compare

All sorts of dependencies have been updated, including JS + GitHub Actions. Also, I've migrated from Jest to Vitest.

Make `overflow` Value Configurable

29 Jun 03:06

Choose a tag to compare

Introduces an overflow option that can be used to customize the value applied to an element during an animation. Ex:

down(document.getElementById("element"), {
  overflow: "auto"
});

Set Default Overflow to "hidden"

29 Jun 02:51

Choose a tag to compare

Sets the default overflow value to hidden, to prevent scrollbars from temporarily appearing during an animation.

Simplify Open/Closed State Management

27 Jan 02:08

Choose a tag to compare

Simplifies a couple of things that had to do with holding the state (open or closed) of an element.

Fix Overflow Issue in Safari

15 Nov 00:48

Choose a tag to compare

When particular contents (like pre tags) were contained within a sliding element, Safari saw an issue where the contents would bleed outside of the element during animation.

This was fixed by explicitly setting the overflow value to auto during an animation.

Allow Dynamic Heights + Padding

14 Nov 05:41

Choose a tag to compare

  • allows for dynamic height values (useful in cases where items within the element are inserted, removed, or resized between animations).
  • allows for elements to have their padding values animated

WeakMap Over Map

05 Oct 02:52

Choose a tag to compare

Changes the library from using a Map() to store expanded height values, in favor of a WeakMap, for an ultra-small performance optimization.

Improved Accessibility

13 Jul 03:02

Choose a tag to compare

Automatically sets correct aria-expanded attribute values after each sliding animation.

Rapid Triggering & Accessibility Support

11 Jul 05:09

Choose a tag to compare

  • Addresses a bug that would occur when a user would rapidly trigger an animation without letting an in-progress one finish.
  • Respects prefers-reduced-motion setting on a user's machine.

Disable Overflow

08 Jul 03:40

Choose a tag to compare

For some contents, if the overflow wasn't set to hidden while animating, the contents were bleeding outside of the box. This change explicitly sets the correct overflow value to prevent this from happening.