personal-site/functions/frontend/textShuffle.js

13 lines
255 B
JavaScript
Raw Normal View History

2022-01-06 05:27:13 +00:00
export const textSHuffle = (text, dispatch) => {
let shuffleTimer = 0;
let startText = text;
let shuffledtext
setInterval(()=>{
shuffleTimer++
shuffledtext = startText + "whatever";
}, 200);
return shuffledtext
}