1.3.2 • Published 4 years ago

vue-animate-shuffle v1.3.2

Weekly downloads
9
License
MIT
Repository
github
Last release
4 years ago

vue-animate-shuffle

Play shuffle animation for given string 🎬

Install

npm i vue-animate-shuffle
import AnimateShuffle from "vue-animate-shuffle";

export default {
  name: "FooBar",
  components: {
    AnimateShuffle,
  },
};

Usage

<animate-shuffle
  animation-string="foobar"
  chars-pool="abcdefghijklmnopqrstuvwxyz"
/>

Props

PropTypeRequiredDefaultDescription
animation-stringStringtrue""String for being animated
chars-poolArray | Stringtrue[]Pool of chars for animation tick
char-update-delayNumberfalse50Delay before animation tick for every char
char-animation-durationNumberfalse1000Animation duration for every char
starting-animation-delayNumberfalse0Delay before initial render
container-element-tagStringfalsedivTag for the container element
char-element-tagStringfalsespanTag for char element
char-animation-complete-classStringfalse""Class that being added on char animation complete
char-classStringfalse""Class for every char element
disabledBooleanfalsefalseDisable animation

Events

EventPayloadDescription
char-animation-complete{ index: <completed char index>, char: <completed char symbol> }Called on char animation complete
string-animation-complete{ renderedString: <complete rendered string> }Called on all strings have been animated

Slots

NameDescription
None (default)Placeholder text for showing when starting-animation-delay is active and there is no initial render yet
1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.1.2

4 years ago

1.0.2

4 years ago

1.0.0

4 years ago