Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue3-flip-countdown

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue3-flip-countdown

Countdown timer with Flip Animation for Vue 3.x

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.7K
increased by5.44%
Maintainers
1
Weekly downloads
 
Created
Source

vue3-flip-countdown

Countdown timer with Flip Animation for Vue 3.x

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>

Props

NameTypeDefaultoptional
deadlineISOString
YYYY-MM-DDTHH:mm:ss.sssZ
className of this column
deadlineString
YYYY-MM-DD HH:mm:ss
32d,0h,0m,10skey of this column
deadlineDateDateclassName of this column
countdownSizeString3remthead colSpan of this column
labelSizeString1.2remtitle of this column
flipAnimationBooleantruewidth of the specific proportion calculation according to the width of the columns
mainColorString'#EC685C'Set custom props per each header cell.
secondFlipColorStringprops.mainColorSet custom props per each header cell.
mainFlipBackgroundColorString'#222222'Set custom props per each header cell.
secondFlipBackgroundColorString'#393939'Set custom props per each header cell.
showLabelsBooleantrueSet custom props per each header cell.
labelColorFunction(record)'#222222'Set custom props per each header cell.
stopBooleandisplay field of the data record
showDaysBooleantruethis column will be fixed when table scroll horizontally: true or 'left' or 'right'
showHoursBooleantruespecify how cell content is aligned
showMinutesBooleantruespecify whether cell content be ellipsized
showSecondsBooleantrueSet custom props per each cell.
labelsObject{days: 'Days',hours: 'Hours',minutes: 'Minutes',seconds: 'Seconds',}Set custom props per each header cell.

References

Requirements

  • Vue version ^3.0.0

License

MIT (c) Emre Coşkunçay

Keywords

FAQs

Package last updated on 18 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc