omi/components/transition
dntzhang d5ca41fc06 feat(@omiu/transition): disappear prop supported 2021-08-09 23:51:03 +08:00
..
demos/js-demo publish(@omiu/transition) 2020-05-04 20:35:16 +08:00
scripts feat(@omiu/transition): support async and await 2021-07-01 17:51:55 +08:00
src feat(@omiu/transition): disappear prop supported 2021-08-09 23:51:03 +08:00
README.md publish(@omiu/transition) 2020-05-04 20:35:16 +08:00
package.json feat(@omiu/transition): disappear prop supported 2021-08-09 23:51:03 +08:00
tsconfig.json publish(omi): v6.18.0, support light dom 2020-04-30 12:53:49 +08:00

README.md

Transition

Define transition animation for entering and leaving

Import

import '@omiu/transition'

Or use script tag to ref it.

<script src="https://unpkg.com/@omiu/transition"></script>

Usage

<o-transition></o-transition>

API

Props

{
  name: string
  leavingTime?: number
  autoRemove?: boolean
  appear?: boolean
  delay?: number
}

默认属性

{
  name: 'o',
  delay: 0
}

Events

  • before-enter
  • after-enter
  • enter
  • before-leave
  • after-leave
  • leave