vue-typed-js
vue-typed-js copied to clipboard
Support vue version 3?
do you plan to support vue version 3?
Great work with the library. Thank you! I have the same question :) Wanted to check if it is planned to be implemented?
Use the dependent library typed.js
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 Thanks for the helpful example!
In case anyone runs into this, I also had to add return {typing}
from setup() to make it work