DEV Community

Cover image for Creating an Apple on a Plate with CSS: A Delicious Journey 🍏

Creating an Apple on a Plate with CSS: A Delicious Journey 🍏

Aleksei Mikhailov on March 21, 2024

This is a submission for DEV Challenge v24.03.20, CSS Art: Favorite Snack. Inspiration How about boost of vitamins from super tasty gre...
Collapse
 
efpage profile image
Eckehard

Beautiful!

Adding a very light smoothing so some or all elements can reduce the cartoon-like effect and make it even more realistic. Adding different smoothing to individual elements (like plate2) does also a very nice job.

body {
  background: #fffbc1;
  filter: blur(0.5px);
}
Enter fullscreen mode Exit fullscreen mode

As the apple will drop a shadow, maybe it was better to slightly change plate 1 a bit like this?

.plate1 {
  ...
  background-color: gray;
  box-shadow: inset 3px 50px 80px #b1d9e7;
}
Enter fullscreen mode Exit fullscreen mode
Collapse
 
plxel profile image
Aleksei Mikhailov

thank you!

filter: blur really helpful

Collapse
 
sarahokolo profile image
sahra πŸ’«

This is fantastic 🀩

Collapse
 
theheadmen profile image
Kireev Daniil

Incredible

Collapse
 
ben profile image
Ben Halpern

Gorgeous

Collapse
 
philiphow profile image
Philip How

Wow, great work @plxel!

Collapse
 
sreno77 profile image
Scott Reno

Is that apple rotten?

Collapse
 
ngdangtu profile image
Đăng TΓΊ

Is this what they call 10x computer artist o.O

Collapse
 
best_codes profile image
Best Codes

Have to admit, this is pretty good! I don't usually eat apples, but now I'm thinking about it…

Great job, I couldn't have done better. 🀩

Collapse
 
jitendrachoudhary profile image
Jitendra Choudhary

Love it πŸ”₯However why don't you have a red apple?

Collapse
 
abdullahzn profile image
Abdullah Al Zandani

Love it!

Collapse
 
mironius_s_e94b2fb1099298 profile image
Mironius S

I like the idea how you achieved the apple's shape just with one div combining different radiuses!

Collapse
 
gargeebanerjee profile image
Gargee Banerjee

WOW!!😢
Loved the highlight on the apple.