Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support vue version 3? #41

Open
MDolega20 opened this issue Feb 14, 2021 · 4 comments
Open

Support vue version 3? #41

MDolega20 opened this issue Feb 14, 2021 · 4 comments

Comments

@MDolega20
Copy link

do you plan to support vue version 3?

@DhvanilPatel
Copy link

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

@zymbth
Copy link

zymbth commented Jan 18, 2022

Use the dependent library typed.js

@MaaxGr
Copy link

MaaxGr commented Sep 25, 2022

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>

@cssndrx
Copy link

cssndrx commented Feb 2, 2023

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants