0.1.2 • Published 2 years ago

vue-fliplay v0.1.2

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

vue-fliplay

Inspired by react-flip-demo

Flip is means First, Last, Invert, Play. This is a Vue 3 component, to make your list with animation if the data change.

Install

npm i vue-fliplay

Usage

Import the component FlipWarpper and FlipItem from vue-fliplay.

import { FlipItem, FlipWarpper } from 'vue-fliplay'
<FlipWarpper :flip-key="{ list }">
  <!-- ...other element... -->
  <!-- flip-item -->
  <FlipItem v-for="item in list" :key="item">
    <div>{{ item }}</div>
  </FlipItem>
  <!-- ...other element... -->
</FlipWarpper>

Checkout the Playground for more examples.

Props

FlipWarpper

NameDescriptionTypeRequired
flip-keyflip-key is a object. The component will create a deep watcher. When the properties of flip-key change, the flip-item will play the animation.Objecttrue

FlipItem

None

License

MIT License © 2022-Present JiatLn

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago