Skip to main content
CSS Tip

CSS-only Chrome Dino Game

What is the best way to showcase the modern CSS features? It's by making CSS-only games.

This time, it's the Chrome Dino game that you can play using your keyboard. Yes, you can jump and crouch with the arrow keys!

CSS-only Chrome Dino game

100% CSS magic powered by Scroll-Driven animations, @property, container queries, etc.

A Chrome-only demo. Sorry, but the dino didn't want to "run" in other browsers, and I respect its decision.

See the Pen CSS-only Chrome Dino Game (with keyboard!) by Temani Afif (@t_afif) on CodePen.

In case you missed it, I also created a mini CSS Mario World using the same techniques.

See the Pen CSS-only Mario World (with keyboard!) by Temani Afif (@t_afif) on CodePen.


More CSS Tips