vue-slide-up-down-component
It is a simple interface but realizes very flexible and powerful slide animation, for Vue!
Like jQuery's slideUp / slideDown, but for Vue!
Installation
Usage with Webpack or other module bundlers:
Usage
The component takes three props:
active
(Boolean): Whether to show the component (true
) or not (false
)duration
(Number): How long the animation is supposed to be, in milliseconds. Defaults to500
.tag
(String): Which HTML tag to use for the wrapper element. Defaults todiv
.
Custom transition-timing-function
If you want to use a different timing function, add some CSS for your <vue-slide-up-down>
element. (See demo/index.html
for a full example.)