vue-flip
A component to flip elements
42,979
| Install | |
|---|---|
npm install vue-flip |
|
| Latest Version: | 3.0.2 |
| Vue: | 3 |
| Older releases: | 2 |
| Last Updated: | Sep 26, 2022 |
| Links: | npm |
Maintainer: kgrandemange
vue-flip
A component to flip elements.
Demo
Installation
Vue.js 2 :
npm i vue-flip@1.0.2
yarn add vue-flip@1.0.2
Vue.js 3 :
npm i vue-flip
yarn add vue-flip
Module
<template>
<vue-flip></vue-flip>
</template>
import { VueFlip } from 'vue-flip';
export default {
components: {
'vue-flip': VueFlip
}
}
Usage
Use this template:
<vue-flip>
<template v-slot:front>
front
</template>
<template v-slot:back>
back
</template>
</vue-flip>
You can active the flip on the click with:
<vue-flip active-click></vue-flip>
or you can active on the hover with:
<vue-flip active-hover></vue-flip>
or you can bind with a variable:
<vue-flip v-model="flipped"></vue-flip>
this.flipped = true; //or false -> to flip front/back
Properties
| Description | Type | Required | Default Value | |
|---|---|---|---|---|
| active-click | flip on click | Boolean | false | false |
| active-hover | flip on hover | Boolean | false | false |
| height | component height | String | true | |
| width | component with | String | true | |
| transition | component transition | String | false | 0.5s |
| v-model | bind flip with variable | Boolean | false | |
| horizontal | switch to horizontal flip | Boolean | false | false |
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 3.0.2 | ^3.2.37 | ||
| 3.0.1 | ^3.2.37 | ||
| 3.0.0 | ^3.2.37 | ||
| 2.2.0 | ^3.0.0-0 | ||
| 2.1.1 | ^3.0.0-0 | ||
| 2.1.0 | ^3.0.0-0 | ||
| 2.0.3 | ^3.0.0-0 | ||
| 2.0.2 | ^3.0.0-0 | ||
| 2.0.1 | ^3.0.0-0 | ||
| 2.0.0 | ^3.0.0-0 | ||
| 1.0.2 | ^2.6.10 | ||
| 1.0.1 | ^2.6.10 | ||
| 1.0.0 | ^2.6.10 | ||
| 0.4.4 | ^2.6.10 | ||
| 0.4.3 | ^2.6.10 | ||
| 0.4.2 | ^2.6.10 | ||
| 0.4.1 | ^2.6.10 | ||
| 0.4.0 | ^2.6.10 | ||
| 0.3.0 | ^2.5.2 | MIT | |
| 0.2.5 | ^2.5.2 | MIT | |
| 0.2.4 | ^2.5.2 | MIT | |
| 0.2.2 | ^2.5.2 | MIT | |
| 0.2.1 | ^2.5.2 | MIT | |
| 0.2.0 | ^2.5.2 | MIT | |
| 0.1.2 | ^2.5.2 | MIT | |
| 0.1.1 | ^2.5.2 | MIT | |
| 0.1.0 | ^2.5.2 | MIT |