DEV Community

Cover image for Frontend Challenge: CSS Art -December Edition
Emmy Zhang
Emmy Zhang

Posted on • Edited on

11 5 5 4 5

Frontend Challenge: CSS Art -December Edition

CSS Art Challenge 2024

This is a submission for Frontend Challenge - December Edition, CSS Art: December.

Inspiration

After stumbling upon Bryan James' site, where he created 30 endangered species utilizing CSS polygons, I took it as a sign to start experimenting with this nifty tool.

Demo

Demo Site
Source Code

demo

Journey

  • Sketch: Sketched out a partridge in triangles, inspired by the song 12 Days of Christmas.
  • Outline: Outlined the elements in HTML, roughly molded them into the desired shapes with CSS polygons.
  • Refine: Manually shifted the elements into place.
  • Styling: Updated colors, added some animation for pizzaz.
  • Mobile: Well, there's a reason why they say "mobile first." Upon testing on smaller screens the elements scattered, so I manually updated the element's height and width to accommodate smaller screens.

In Bryan James' site a JS tracer was used on existing images to create the polygons. I opted for a less sophisticated approach for time and sanity sake, but I imagine with a tracer the polygons could have been created dynamically and would have made mobile styling and animations a lot easier - perhaps a project for next time :) I had fun and learned quite a bit with this one though!

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (3)

Collapse
 
naomijustin profile image
Naomi Justin

What a cool idea to make the bird out of sharp shapes - looks great!

Collapse
 
plutonium239 profile image
plutonium239

This is so cute!

Collapse
 
dexter97820123 profile image
Dexter

This is quite interesting.

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay