This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.animBgr { | |
width: 100%; | |
opacity: 0; | |
animation: grow-animation 450ms ease-in-out forwards; | |
@keyframes grow-animation { | |
0% { width: 0%; opacity: 1;} | |
100% { width: 100%; opacity: 1; } | |
} | |
animation-delay: calc(var(--animation-delay) * 1ms); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dyslectize(text, wordTrehslod, letterTreshhold) { | |
wordTrehslod = wordTrehslod || 0.3; | |
letterTreshhold = letterTreshhold || 0.5; | |
var words = text.split(" "); | |
function isVowel(letter) { | |
var vowels = "aeiouy"; | |
return vowels.indexOf(letter.toLowerCase()) > -1; |