JSFiddle - React, Tailwind, and code Playground

by NerfAnarchist

HTML

<div class="old_paper">
    Date: 12-2-1880<br /><br />
    This is some test text.
</div><br /><hr /><br />

<div class="offset">
    Date: 12-2-1880<br /><br />
    This is some test text.
</div><br /><hr /><br />

<div class="animated_offset">
    Date: 12-2-1880<br /><br />
    This is some test text.
</div><br /><hr /><br />

<div class="blurred">
    Date: 12-2-1880<br /><br />
    This is some test text.
</div><br /><hr /><br />

<div class="cursive">
    Date: 12-2-1880<br /><br />
    This is some test text.
</div><br /><hr /><br />

<div class="fantasy">
    Date: 12-2-1880<br /><br />
    This is some test text.
</div><br /><hr /><br />

<div class="looping_blur">
    Date: 12-2-1880<br /><br />
    This is some test text.
</div><br /><hr /><br />

<div class="terminal">
    Date: 12-2-1880<br /><br />
    This is some test text.
</div>

CSS

@keyframes focus_reading {
    0% {
        text-shadow: 0px 0px 0px #000;
    }
    25% {
        text-shadow: 3px 3px 0px #000;
        -webkit-filter: blur(1px);
    }
    50% {
        text-shadow: 0px 0px 0px #000;
    }
    100% {
        -webkit-filter: blur(0px);
    }
}

@-webkit-keyframes focus_reading {
    0% {
        text-shadow: 0px 0px 0px #000;
    }
    25% {
        text-shadow: 3px 3px 0px #000;
        -webkit-filter: blur(1px);
    }
    50% {
        text-shadow: 0px 0px 0px #000;
    }
    100% {
        -webkit-filter: blur(0px);
    }
}

.old_paper {
    background-color: #F8ECC2;
    padding: 10px;
    
    text-shadow: 0px 0px 6px #000;
    font-family: monospace;
}

.offset {
    text-shadow: 10px 10px 0px #000;
    font-family: monospace;
}

.animated_offset {
    font-family: monospace;
    animation: focus_reading 2s;
    -webkit-animation: focus_reading 2s;
}

.blurred {
    font-family: monospace;
    filter: blur(2px);
    -o-filter: blur(2px);
    -webkit-filter: blur(2px);
}

.cursive {
    font-family: cursive;
}

.fantasy {
    font-family: fantasy;
}

.looping_blur {
    animation-iteration-count: infinite;
    -webkit-animation-iteration-count: infinite;
    animation: focus_reading 2s;
    -webkit-animation: focus_reading 2s;
}

.terminal {
    font-family: monospace;
    background-color: #000000;
    color: #FFC200;
}

JavaScript

// playing with text