DEV Community

Cover image for The Frontend Challenge: 🍩 Donut eat my favorite snack!
Temani Afif
Temani Afif

Posted on

44 11 12 9 13

The Frontend Challenge: 🍩 Donut eat my favorite snack!

This is a submission for DEV Challenge v24.03.20, CSS Art: Favorite Snack.

Inspiration

I think the cover image is more than explicit. I will be drawing a Donut which is the favorite snack of many of you.

To draw this snack, I invited a Donut expert to help me get the perfect output and make sure my art is so realistic that you want to eat it but donut eat it!

I know, I know. You are excited to see the result, so let's jump straight to the demo.

drum roll

Demo

Ladies and gentlemen here is my CSS Art: A Beautiful Donut πŸ₯³

Noooooooooooo 😱


He was supposed to help me draw a Donut not eat it. I spent a lot of time making a perfect donut but now it's over... 😩

Sorry for this inconvenience, instead of a Donut my entry will be "Homer Simpson ate my Donut".

I was really proud of my Donut...

facepalm


Wait a minute, nothing is lost! I have tried to make a few donuts before he came. Yes, I am saved!

Well, they are not as perfect as the one Homer ate but still good ones.

Hurry Up and select one before he eats them as well!

Journey

I wanted something a bit surprising and creative so I hope you liked this plot twist 😁

The donut is a single-element implementation and can be easily adjusted to get as many variations as you want. I used an <input> tag to get that "eating" effect on click.

Drawing Homer Simpson was more complicated but it was a good opportunity to get back to some CSS Arts so thank you for this challenge!

The demos are best viewed in Chrome (or Firefox).

Please, don't ask me about Safari

AWS Q Developer image

Your AI Code Assistant

Ask anything about your entire project, code and get answers and even architecture diagrams. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Start free in your IDE

Top comments (14)

Collapse
 
alvaromontoro profile image
Alvaro Montoro β€’

There goes my donut idea...

Collapse
 
afif profile image
Temani Afif β€’

I also made a 3D one with a lot of beautiful effects but unfortunately ... πŸ₯²

The only ones left are the simple 2D ones

Collapse
 
ben profile image
Ben Halpern β€’

Wow

Collapse
 
sarahokolo profile image
sahra πŸ’« β€’

My oh my. That's amazing 🀩

Collapse
 
anmolbaranwal profile image
Anmol Baranwal β€’

I was hooked the moment I saw the thumbnail.
Really loved your awesome work! The twist as well πŸ˜†

Collapse
 
dorothyjay profile image
Dorothy_Jay β€’

WOW what fun !πŸ₯³

Collapse
 
link2twenty profile image
Andrew Bone β€’

You didn't disappoint πŸ˜‰

Collapse
 
erinao profile image
Erin A Olinick β€’

Love it!

Collapse
 
ngdangtu profile image
Đăng TΓΊ β€’

This challenge sure knows how to bring out some hidden talents in both professional and side-skill like comedian huh...

Anway, Temani Afif, about safari... could you... you know...

Collapse
 
jak2k profile image
Jak2k β€’

Safari is the new internet explorer.

Collapse
 
ngdangtu profile image
Đăng TΓΊ β€’

shh, it won't be secret if ya say it aloud, ya know -_-

Collapse
 
jitendrachoudhary profile image
Jitendra Choudhary β€’

Amazing, Temani !!

Collapse
 
pizofreude profile image
Pizofreude β€’

Genius, har har har har :D

Playwright CLI Flags Tutorial

5 Playwright CLI Flags That Will Transform Your Testing Workflow

  • --last-failed: Zero in on just the tests that failed in your previous run
  • --only-changed: Test only the spec files you've modified in git
  • --repeat-each: Run tests multiple times to catch flaky behavior before it reaches production
  • --forbid-only: Prevent accidental test.only commits from breaking your CI pipeline
  • --ui --headed --workers 1: Debug visually with browser windows and sequential test execution

Learn how these powerful command-line options can save you time, strengthen your test suite, and streamline your Playwright testing experience. Practical examples included!

Watch Video πŸ“ΉοΈ

πŸ‘‹ Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay