vue-typed-js icon indicating copy to clipboard operation
vue-typed-js copied to clipboard

Support vue version 3?

Open MDolega20 opened this issue 3 years ago • 4 comments

do you plan to support vue version 3?

MDolega20 avatar Feb 14 '21 09:02 MDolega20

Great work with the library. Thank you! I have the same question :) Wanted to check if it is planned to be implemented?

DhvanilPatel avatar Jun 02 '21 06:06 DhvanilPatel

Use the dependent library typed.js

zymbth avatar Jan 18 '22 07:01 zymbth

For everyone that needs an example:

Install via npm: npm i typed.js

In script setup:

import Typed from 'typed.js';

const typing = ref(null);

onMounted(() => {
    new Typed(typing.value, {
        strings: ["Developer", "Blogger", "Freelancer"],
        typeSpeed: 100,
        backSpeed: 60,
        loop: true
    });
});

In template:

<span ref="typing"></span>

MaaxGr avatar Sep 25 '22 09:09 MaaxGr

@MaaxGr Thanks for the helpful example!

In case anyone runs into this, I also had to add return {typing} from setup() to make it work

cssndrx avatar Feb 02 '23 08:02 cssndrx