Customize Countdown Timer With Flip Animation for Vue 3.x

Vue3 Flip countdown is customized to the countdown counter with Flip Animation for Vue 3.x.

Must Read: [Countdown] Simple Round Clock with HTML, CSS, and Javascript

How to make use of it:

Install and download:

# NPM
$ npm i vue3-flip-countdown

1. Import and register the component.

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

2. Add a countdown timer to the template.

<vue3-flip-countdown />

3. Props available to configure the countdown timer.

deadline: {
  type: String,
  required: false,
  default: moment()
      .add(32, "d")
      .add(10, "s")
      .format(fmt),
},
deadlineISO: {
  type: String,
  required: false,
},
deadlineDate: {
  type: Date,
  required: false,
},
countdownSize:{
  type:String,
  required:false,
  // default:"2.2rem"
},
labelSize:{
  type:String,
  required:false,
  // default:"2.2rem"
},
stop: {
  type: Boolean,
  required: false,
},
flipAnimation: {
  type: Boolean,
  required: false,
  default: true,
},
showDays: {
  type: Boolean,
  required: false,
  default: true,
},
showHours: {
  type: Boolean,
  required: false,
  default: true,
},
showMinutes: {
  type: Boolean,
  required: false,
  default: true,
},
showSeconds: {
  type: Boolean,
  required: false,
  default: true,
},
showLabels: {
  type: Boolean,
  required: false,
  default: true,
},
labels: {
  type: Object,
  required: false,
  default: function () {
      return {
          days: 'Days',
          hours: 'Hours',
          minutes: 'Minutes',
          seconds: 'Seconds',
      };
  },
},
mainColor: {
  type: String,
  default: '#EC685C'
},
secondFlipColor: {
  type: String,
  default: (props) => props.mainColor,
},
mainFlipBackgroundColor: {
  type: String,
  default: '#222222'
},
secondFlipBackgroundColor: {
  type: String,
  default: '#393939'
},
labelColor: {
  type: String,
  default: '#222222'
}

Props

Must Read: jQuery Plugin for Countdown Timer on HTML Page | SyoTimer

NameTypeDefault
deadlineISOString
YYYY-MM-DDTHH:mm:ss.sssZ
deadlineString
YYYY-MM-DD HH:mm:ss
32d,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’,}

See Demo And Download

vue3-flip-countdown

Official Website(coskuncayemre): Click Here

This superior jQuery/javascript plugin is developed by coskuncayemre. For extra Advanced Usage, please go to the official website.

Related Posts

Input-Values-Using-Mouse-Drag

Create Side Sliders Input Values Using Mouse Drag | Pointer Lock

HTML Range Slider is a lightweight library to create side sliders to adjust values easily and precisely by making use of the Pointer Lock API. Side Slider…

simple-parallax-scrolling-js

Smooth and Lightweight Parallax Scroll Library in Pure Javascript

Lightweight and seamless parallax scrolling library implemented in pure javascript using hardware acceleration for additional performance. Main Features Extremely lightweight with no dependencies A few kilobytes of pure…

Convert-Form-Data-to-JSON

How to Convert Form Data to JSON with HTML Forms | FormsJS

FormsJS is a simple-to-use JavaScript library that covers type subject values to JSON in real time. The items containing the data category will be analyzed automatically. It…

editable-html-table-using-javascript

A Small jQuery Extension to Convert An Editable HTML Table

Editable Table is a small jQuery extension to convert an editable HTML table for fast data entry and validation. A small jQuery extension to convert a static…

jquery.youtube-background

Simple jQuery Plugin for Embedding YouTube Videos As Cover Background

jquery.youtube-background is a jQuery plugin built to facilitate YouTube embeds as cover wallpaper using the YouTube Embed API. There is another jQuery Youtube Video Background plugin that…

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…

Leave a Reply

Your email address will not be published. Required fields are marked *