vue实现嵌入到组件中_Vue的嵌入式文本组件

vue实现嵌入到组件中

维斯罗林 (vue-scrollin)

vue-scrollin is a Vue component that scrolls through various characters on mount before revealing the correct text.

vue-scrollin是Vue组件,可在显示正确的文本之前滚动浏览挂载的各种字符。

vue-scrollin

安装 (Install)

Install the package from npm with your favorite package manager (eg. yarn add vue-scrollin or npm i vue-scrollin).

使用您最喜欢的软件包管理器从npm安装软件包(例如,用yarn add vue-scrollinnpm i vue-scrollin )。

用法 (Usage)

Simply import and register the component and use it in your template. For example,

只需导入并注册组件,然后在模板中使用它即可。 例如,

<template>
  <VScrollin>
    this text will scroll
  </VScrollin>
</template>

<script>
import VScrollin from 'vue-scrollin'

export default {
  [...]
  components: {
    VScrollin
  }
};
</script>

道具 (Props)

Easily customise the animation with optional props.

使用可选道具轻松自定义动画。

Property nameTypeDefaultDescription
charactersArraya-zCharacters scrolled through
missesNumber4Number of scrolls before correct letter
speedNumber80Delay of each letter scoll (ms)
物业名称 类型 默认 描述
人物 数组 z 字符滚动
错过 4 正确字母前的滚动数
速度 80 每个字母的延迟时间(毫秒)

翻译自: https://vuejsexamples.com/scroll-in-text-component-for-vue/

vue实现嵌入到组件中

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值