DEV Community

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

Posted on • Edited on

13 6 5 5 6

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!

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn 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.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay