vue-reveal-effect

Vue Reveal Effect
3,218 38
Install
npm install vue-reveal-effect
Latest Version:2.0.3
Vue:3
License:MIT
Last Updated:Apr 15, 2023
Links: GitHub  ·  npm
Maintainer: huodoushigemi

Vue Reveal Effect

fork stars npm

vue-reveal-effect

🌈 Demo

🚀 Requirements

  • Chorme 76+
  • Vue 3+

⚙️ Installation

npm i -S vue-reveal-effect

🦄 Use in JS

<h1 id="reveal1">REVEAL EFFECT</h1>
<h1 id="reveal2">REVEAL EFFECT</h1>
<h1 id="reveal3">REVEAL EFFECT</h1>

<script>
  import { useRevealEffect } from 'vue-reveal-effect';

  const options2 = {
    borderWidth: 4,
    borderColor: 'rgba(255, 0, 0, 40%)',
    borderSize: 40,
    bgSize: 40
    bgColor: '#00a1ff'
  }

  const options3 = {
    borderWidth: 2,
    clickEffect: false
  }

  useRevealEffect(document.getElementById('reveal1'));
  useRevealEffect(document.getElementById('reveal2'), options2);
  useRevealEffect(document.getElementById('reveal3'), options3);
</script>

🦄 Use in Vue

import { createApp } from 'vue'
import VueRevealEffect from 'vue-reveal-effect'

createApp(App).use(VueRevealEffect).mount('#app')
<template>
  <h1 v-reveal-effect>VUE REVEAL EFFECT</h1>
  <h1 v-reveal-effect="options1">VUE REVEAL EFFECT</h1>
  <h1 v-reveal-effect="options2">VUE REVEAL EFFECT</h1>
</template>

<script setup>
  const options1 = {
    borderWidth: 4,
    borderColor: 'rgba(255, 0, 0, 40%)',
    borderSize: 40,
    bgSize: 40
    bgColor: '#00a1ff'
  }

  const options2 = {
    borderWidth: 2,
    clickEffect: false
  }
</script>

📄 Props

Name Type Default Description
borderWidth MaybeRef<number> 1
borderColor MaybeRef<string>
borderGradientSize MaybeRef<number> 100
bgColor MaybeRef<string>
bgGradientSize MaybeRef<number> 130
clickEffect MaybeRef<boolean> true Enable ripple click effect
light MaybeRef<boolean>
disabled MaybeRef<boolean> false

☹ Not Supported

  • ❌ border-radius attribute of css is not supported
  • ❌ <img /> tag of html is not supported

⭐️ Show Your Support

Please give a ⭐️ if this project helped you!

👏 Contributing

If you have any questions or requests or want to contribute, please write the issue or give me a Pull Request freely.

fork fork

Related Packages

x-ui-vue3

一个 win10 风格的组件库

3,362
vue-metro-tile

A windows 10 metro tile component in vue

3,213 186
web-win-vue

基于 Vue3 开发的 Windows10 风格 Web 组件库

2,858 4
vue-ice-ui

it's a collection of computer desktop-style plugins for vue

762 3
@dialect-ui/vue

Dialect 组件的 Vue 3 适配层:渲染同一套 DOM 契约,行为交给 @dialect-ui/core。

0 1

Version History

Version Released Vue License
2.0.3 ^3.0.0 MIT
2.0.2 ^3.0.0 MIT
2.0.1 ^3.0.0 MIT
2.0.0 ^3.0.0 MIT
0.0.22 ^3.0.0 MIT