my goal is to store this code:
anime.timeline()
.add({
targets: '.animate .word',
scale: [14, 1],
opacity: [0, 1],
easing: "easeOutCirc",
duration: 600,
});
inside of a function that once i'll call it, it will run the the code above. I have tried this on:
var animate = ()=>{
anime.timeline()
.add({
targets: '.animate .word',
scale: [14, 1],
opacity: [0, 1],
easing: "easeOutCirc",
duration: 600,
});
};
but once I called this, it seems to have an error that says that anime.timline() is not a function. any ideas?