Understand the BetterAnimations layout structure
Every animation in a Module uses a base layout consisting of an Element and a Container.
- Element: The actual DOM element that the animation targets to make appear (
enter) or disappear (exit). All visual styles should be applied here. - Container: A wrapper element around the Element. It is used to define a containing block and stacking context, implement overflow settings (via
clip), and facilitate Accordion animations without affecting the Element's size or position.