vue3-flip-countdown

Countdown timer with Flip Animation for Vue 3.x
85,728 113
Install
npm install vue3-flip-countdown
Latest Version:0.1.6
Vue:3
License:MIT
Last Updated:Nov 25, 2023
Links: GitHub  ·  npm
Maintainer: coskuncayemre

vue3-flip-countdown

Customize Countdown timer with Flip Animation for Vue 3.x

vue3-flip-countdown.netlify.app

Netlify Status

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

Name Description
timeElapsed event that created when the time came

Props

Name Type Default
deadlineISO StringYYYY-MM-DDTHH:mm:ss.sssZ
deadline StringYYYY-MM-DD HH:mm:ss 32d,0h,0m,10s
deadlineDate Date
countdownSize String 3rem
labelSize String 1.2rem
flipAnimation Boolean true
mainColor String '#EC685C'
secondFlipColor String props.mainColor
mainFlipBackgroundColor String '#222222'
secondFlipBackgroundColor String '#393939'
labelColor String '#222222'
showLabels Boolean true
stop Boolean
showDays Boolean true
showHours Boolean true
showMinutes Boolean true
showSeconds Boolean true
labels Object {days: 'Days',hours: 'Hours',minutes: 'Minutes',seconds: 'Seconds',}

References

Requirements

  • Vue version 3.x.x

License

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

Related Packages

vue2-flip-countdown

A simple flip countdown timer component for Vue 2.x

64,576 228
@dmaksimovic/vue-countdown

VueJS 2.0 countdown component

1,409 12
@smithalan2/vue-countdown

A simple countdown timer component for Vue 3 written using the composition API.

2,070 3
@vuecs/countdown

A package containing a countdown component.

12,377 4
@vue-layout/countdown

A package containing a countdown component.

2,864 4

Version History

Version Released License
0.1.6 MIT
0.1.5 MIT
0.1.4 MIT
0.1.3 MIT
0.1.2 MIT