I saw this excellent post by Anthony Fu and decided to add this animation to my site. Since his solution is quite manual, I decided to try to create a more elegant solution with Jekyll. The result is the jekyll-animate-elements plugin. You can check an example of it working on the demo site.