0.0.15 • Published 11 months ago

vue-smooth-fade v0.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Vue 3 Smooth Fade

Vue 3 plugin for smooth hiding and showing content

Demo

Demo

Installation

npm i vue-smooth-fade

Usage

Inside vue components use:

<script setup>
    import { SmoothFade } from 'vue-smooth-fade'
    import { ref } from 'vue'
    
    const show = ref(false)
</script>

<template>
    <SmoothFade v-model="show">
        <div>
            ........
        </div>
    </SmoothFade>
    
    <a href="#" @click.prevent="show = !show">Toggle</a>
</template>

Props

AttributeTypeDefaultDescription
durationNumber700show and hide duration
easingStringease-in-outeasing
overflowBooleanfalseSet overflow:hidden to parent element
0.0.15

11 months ago

0.0.14

12 months ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago