D3XSKY / vue-typical

๐Ÿก Vue Animated typing in ~400 bytes of JavaScript.

Home Page:https://vue-typical.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

English | ็ฎ€ไฝ“ไธญๆ–‡

vue-typical

Vue Animated typing in ~400 bytes ๐Ÿก of JavaScript. Preview โ†’

npm npm license jsdelivr

Vue Typical

๐Ÿ“ฆ Install

You can install vue-typical via npm:

npm install vue-typical

Or use it directly in browser via cdn service:

<script src="https://cdn.jsdelivr.net/npm/vue-typical@latest/dist/typical.umd.min.js"></script>

๐Ÿš€ Usage

<typical
  :steps="['Hello', 1000, 'Hello world!', 500]"
  :wrapper="'h2'"
></typical>
<typical
  class="typicalWrapper"
  :steps="['Fucking', 1000, 'Fucking Awesome!', 500, 'Fucking Awesome! Aha :-) ๐Ÿ‘‹', 1000]"
  :loop="Infinity"
  :wrapper="'h3'"
></typical>

Edit vue-typical

๐Ÿ“‘ Properties

Prop Required Type Eg.
steps True Array<String | Number | Function> ['Hello', 1000, () => alert('Word')]
loop False Number 1 or 'Infinity'
wrapper False String 'div'

โœจ Style

Add the blink cursor effect with typicalWrapper classname.

.typicalWrapper::after {
  content: "|";
  animation: blink 1s infinite step-start;
}

@keyframes blink {
  50% { opacity: 0; }
}

๐Ÿ”จ Contributing

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

โค๏ธ Contributors

Thanks goes to these people (emoji key):


Turkyden

๐Ÿ’ป๐Ÿ“–๐Ÿš‡โš ๏ธ

KnowsCount

๐Ÿ“–

License

This library is based on @camwiegert/typical work and it currently is just a wrapper for vue.

Inspired by @catalinmiron/react-typical.

MIT ยฉ Turkyden

About

๐Ÿก Vue Animated typing in ~400 bytes of JavaScript.

https://vue-typical.vercel.app/

License:MIT License


Languages

Language:Vue 34.9%Language:JavaScript 28.1%Language:HTML 24.1%Language:CSS 12.9%