「When a JavaScript WeakMap() Actually Came in Handy // Alex MacArthur」
Back when I was working on slide-element, I noticed an issue that would occur when I rapidly toggled an element open & closed. If the previous animation wasn't allowed to finish, the new one would eventually get outta whack, clipping the content on subsequent animations. The Cause of the...