typed.js_Typed.js集成可轻松创建打字动画

本文介绍了如何使用vue-typed-js库在Vue.js应用中集成Typed.js,实现动态打字效果。内容涵盖了安装方法、基本用法、属性定制、事件监听以及示例展示。
摘要由CSDN通过智能技术生成

typed.js

Vue类型的js (vue-typed-js)

A Vue.js integration for Typed.js.

用于Typed.js的Vue.js集成。

Typed.js is a library that types. Enter in any string, and watch it type at the speed you've set, backspace what it's typed, and begin a new sentence for however many strings you've set.

Typed.js是一个类型库。 输入任何字符串,并观看它以您设置的速度键入,退格所键入的内容,并为所设置的许多字符串开始一个新句子。

安装 (Installation)

npm install --save vue-typed-js

默认导入 (Default import)

Install the component:

安装组件:

import Vue from 'vue'
import { VueTypedJs } from 'vue-typed-js'

Vue.use(VueTypedJs)

⚠️ A css file is included when importing the package. You may have to setup your bundler to embed the css in your page.

import️导入软件包时包含一个css文件。 您可能需要设置捆绑程序才能将CSS嵌入到页面中。

浏览器导入 (Browser import)

<link rel="stylesheet" href="vue-typed-js/dist/vue-typed-js.css"/>

<script src="vue.js"></script>
<script src="vue-typed-js/dist/vue-typed-js.browser.js"></script>

The plugin should be auto-installed. If not, you can install it manually with the instructions below.

该插件应自动安装。 如果没有,您可以按照以下说明手动安装。

Install all the components:

安装所有组件:

Vue.use(VueTypedJ
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值