01 Sep 2021 - Krona Emmanuel
I was going to write a post about how great Tailwind Typography is because all I had to do to style my website was add two classes:
<div class"prose prose-red">
</div>
But after doing that little bit of work, I thought to myself: “Oh, let’s make a “loading…” bouncing text animation for my website since a lot of stuff is still work in progress”
Seems pretty simple right? Wrong.
It would have been wayyyyy more simpler had I been using some other framework, but since this is Jekyll, which uses Liquid, it was much harder than it should have been. There are two main factors for this:
script
and style
tags in shopify, but those dont work in JekyllYou can checkout this commit to checkout the liquid code which splits a word into letters, then applies a dynamic animation-duration
and animation-delay
to each letter.
and here’s the final result:
and if you aren’t reading this post too much in the future, you might see a similar animation down below, don’t worry, it will be removed soon enough.