vue-seamless-roll
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

vue-seamless-roll

Vue3 Demo

Vue2 Demo

Install

npm i vue-seam-roll

Props

props: {
  rollList: {
    // As the name implies.
    type: Array as PropType<(string | number)[]>,
    default: () => [],
  },
  interval: {
    // How long is the item Staying.
    type: [ Number, String ],
    default: 2000,
  },
  transitions: {
    // No need to describe more.
    type: Object as PropType<{
      'transition-delay': string
      'transition-duration': string
      'transition-timing-function': string
    }>,
    default: () => ({
      'transition-delay': '0',
      'transition-duration': '1s', // Actually, the whole duration time is added with the `transition-delay`.
      'transition-timing-function': 'linear',
    }),
  },
},

TODO

  • [ ] Support slot.
  • [ ] define and expose methods like startRoll \ stopRoll \ rollTo .

Package Sidebar

Install

npm i vue-seamless-roll

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

15.9 kB

Total Files

8

Last publish

Collaborators

  • lvjiaxuan