0.1.6 • Published 2 years ago

vue3-flip-countdown v0.1.6

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

vue3-flip-countdown

Customize Countdown timer with Flip Animation for Vue 3.x

vue3-flip-countdown.netlify.app

Demo

Table of contents

Installation

npm i vue3-flip-countdown --save

Global Usage

main.js

import { createApp } from 'vue'
import App from './App.vue'
import Countdown from 'vue3-flip-countdown'
createApp(App).use(Countdown).mount('#app')

App.vue

<template>
  <vue3-flip-countdown />
</template>

<script>

export default {
  name: 'App',
  components: {
  }
}
</script>

Single File Component Usage

<template>
  <Countdown />
</template>

<script>
import {Countdown} from 'vue3-flip-countdown'
export default {
  name: 'App',
  components: {
    Countdown
  }
}
</script>

Emits

NameDescription
timeElapsedevent that created when the time came

Props

NameTypeDefault
deadlineISOStringYYYY-MM-DDTHH:mm:ss.sssZ
deadlineStringYYYY-MM-DD HH:mm:ss32d,0h,0m,10s
deadlineDateDate
countdownSizeString3rem
labelSizeString1.2rem
flipAnimationBooleantrue
mainColorString'#EC685C'
secondFlipColorStringprops.mainColor
mainFlipBackgroundColorString'#222222'
secondFlipBackgroundColorString'#393939'
labelColorString'#222222'
showLabelsBooleantrue
stopBoolean
showDaysBooleantrue
showHoursBooleantrue
showMinutesBooleantrue
showSecondsBooleantrue
labelsObject{days: 'Days',hours: 'Hours',minutes: 'Minutes',seconds: 'Seconds',}

References

Requirements

  • Vue version 3.x.x

License

MIT Copyright (c) 2021, Emre Coşkunçay

0.1.4

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago