# vue-typical **Repository Path**: Turkyden/vue-typical ## Basic Information - **Project Name**: vue-typical - **Description**: 🐡 Vue Animated typing in ~400 bytes of JavaScript. 模拟打字跳动效果 Vue 组件 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: https://vue-typical.vercel.app/ - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2021-04-27 - **Last Updated**: 2023-06-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 简体中文 | [English](./README.md)

vue-typical

一个仅有 400 bytes 🐡 JavaScript 的 Vue 自动打字动画效果。 演示效果 →

npm npm license jsdelivr

[![Vue Typical](./vue-typical.gif)](https://vue-typical.vercel.app/) ## 📦 安装 你可以通过 npm 安装这个依赖: ```bash npm install vue-typical ``` 或者直接使用 cdn: ```html ``` ## 🚀 用法 ```html ``` [![Edit vue-typical](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/vue-typical-cqj9q?fontsize=14&hidenavigation=1&module=%2Fsrc%2FApp.vue&theme=dark) ## 📑 属性 | Prop|Required|Type|Eg.| |--|--|--|--| |`steps`|True|Array|`['Hello', 1000, () => alert('Word')]`| |`loop`|False|Number|`1` or `'Infinity'` | |`wrapper`|False|String|`'div'`| ## ✨ 样式 想要光标闪烁效果,可以给标签加上 `typicalWrapper` CSS 类名. ```css .typicalWrapper::after { content: "|"; animation: blink 1s infinite step-start; } @keyframes blink { 50% { opacity: 0; } } ``` ## 🔨 贡献 ```npm npm install ``` ### 开发环境打包 ```npm npm run serve ``` ### 生产环境打包 ```npm npm run build ``` ## ❤️ 贡献者 Thanks goes to these people (emoji key):

Turkyden

💻📖🚇⚠️

KnowsCount

📖
## 版权 该库基于 [@camwiegert/typical](https://github.com/camwiegert/typical),不过是一个 vue 版本。 受到 [@catalinmiron/react-typical](https://github.com/catalinmiron/react-typical) 的启发。 [MIT](https://github.com/Turkyden/vue-typical/blob/main/LICENSE) © [Turkyden](https://github.com/Turkyden)