Giter Site home page Giter Site logo

d3xsky / vue-typical Goto Github PK

View Code? Open in Web Editor NEW

This project forked from turkyden/vue-typical

0.0 1.0 0.0 2.74 MB

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

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

License: MIT License

JavaScript 28.08% HTML 24.11% Vue 34.85% CSS 12.95%

vue-typical's Introduction

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

vue-typical's People

Contributors

turkyden avatar lizhi334 avatar knowscount avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.