This package has been deprecated

Author message:

this package has been deprecated, please use react-auto-height-transition instead

auto-height-transition

1.0.2 • Public • Published

auto-height-transition

基于react的可自动过渡高度的transition组件

使用方法:

import {
    TransitionWhenHeightChange,
    TransitionWhenToggle
} from 'auto-height-transition';

<TransitionWhenToggle duration={300} timeFunction={'ease'}>
  {
    this.state.show && (
      <div>
        placeholder<br/>
        placeholder<br/>
        placeholder<br/>
        placeholder<br/>
      </div>
    )
  }
</TransitionWhenToggle>

<TransitionWhenHeightChange height={this.state.shouldCollapsed ? 20 : null} duration={300} timeFunction={'ease'}>
    <div>
        placeholder<br/>
        placeholder<br/>
        placeholder<br/>
        placeholder<br/>
      </div>
</TransitionWhenHeightChange>

Package Sidebar

Install

npm i auto-height-transition

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

10.9 kB

Total Files

7

Last publish

Collaborators

  • liz2z