Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 934 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 934 Bytes

vue-text-slide

Vue component TextSlide to animate text changes with default or custom styles. Whenever your data property changes, the component will animate leaving / entering values.

Demo

vue-text-slide demo

<TextSlide :txt="msg" />

Default styles can be overriden like:

<TextSlide
  :txt="count"
  :styles="{background:'red', height:'2em', width:'2em', borderRadius:'1em'}"
  :styles-inner="{color:'white', alignItems:'center', justifyContent:'center'}"
  distance-x="50%"
  data-key="give-me-unique-key"
/>

optional props

  • styles, an object to style the component's outer box
  • styles-inner, an object to style the component's inner box
  • distance-x, to override the default translateX amount 5%
  • data-key, optional to make each component unique for application that uses multiple components