1.0.9 • Published 2 years ago

react-auto-animated-container v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Demo

See on:

Sandbox

Gif

Youtube

Usage

<HeightAnimatedContainer duration={300} transitionTimingFunction="ease">
	<AnyDynamicList>
		{anyChildren}
	</AnyDynamicList>
</HeightAnimatedContainer>

Attention

If you use another HeightAnimatedContainer inside HeightAnimatedContainer, you must specify a reference of a parent.

<HeightAnimatedContainer ref={parent} duration={300}>
	<AnyDynamicList>
		<HeightAnimatedContainer parentHeightAnimatedContainer={parent} duration={300}>
			{someOtherChildren}
		</HeightAnimatedContainer>
		{anyChildren}
	</AnyDynamicList>
</HeightAnimatedContainer>

If you use CSSTransition which has unmountOnExit property enabled, then you need to call UnmountCSSTransitionExited static method in OnExited event.

<HeightAnimatedContainer ref={parent} duration={300}>
    <CSSTransition
        key={i}
        timeout={animationDurationMS}
        classNames={{
            enterActive: fallDown,
            exitActive: fallDownR,
        }}
        unmountOnExit
        onExited={() => HeightAnimatedContainer.UnmountCSSTransitionExited(parent) }
        >
        <SomeComponent></SomeComponent>
    </CSSTransition>
</HeightAnimatedContainer>
1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago