add ityped, add strapi type generate plugin
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
'use client'
|
||||
|
||||
import { useEffect} from "react";
|
||||
import AOS from "aos";
|
||||
import { init } from 'ityped'
|
||||
|
||||
const AosComponent = ( ) => {
|
||||
const ITypedComponent = ( ) => {
|
||||
useEffect(() => {
|
||||
AOS.init({
|
||||
duration: 1000,
|
||||
offset: 120,
|
||||
easing: 'ease-in-out'
|
||||
init(document.querySelector('.ityped') as Element,{
|
||||
strings: ['Body & Soul'],
|
||||
typeSpeed: 150,
|
||||
backSpeed: 150,
|
||||
loop: true
|
||||
})
|
||||
}, []);
|
||||
return (<></> );
|
||||
}
|
||||
|
||||
export default AosComponent;
|
||||
export default ITypedComponent;
|
||||
|
||||
Reference in New Issue
Block a user