Skip to content

bob-lee/vue-text-slide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published