personal-site/functions/frontend/textShuffle.js
2022-01-06 06:27:13 +01:00

13 lines
255 B
JavaScript

export const textSHuffle = (text, dispatch) => {
let shuffleTimer = 0;
let startText = text;
let shuffledtext
setInterval(()=>{
shuffleTimer++
shuffledtext = startText + "whatever";
}, 200);
return shuffledtext
}