CSS Art: Grape
Maria Edwards
Posted on March 28, 2024
Inspiration
As a frontend engineer, you seldom encounter artistic CSS, so participating in this challenge was a rare treat. It also made me hungry for grapes, haha!
Demo
Journey
I want to admit that I cheated a little bit with the stem using a realistic-looking svg. My first draft utilized the clip-path
property. However, its effect was quite cartoonish, so I dumped it.
The submission utilizes the following CSS properties:
-
display: grid
was quite handy in creating the distribution of berries. - Gradients, shadows, and filters to create a somewhat photorealistic grape.
- CSS variables.
-
:nth-child
selector to introduce a little variety for the berries' shapes and sizes. - CSS animation so you could "squeeze" those berries.
- Units -
vh
and%
- to create responsiveness.
💖 💪 🙅 🚩
Maria Edwards
Posted on March 28, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
frontendchallenge Submission For Front-end Challenge 2024 Earth Day Edition 🌎: "Earth's Future In Our Hands"
April 21, 2024
frontendchallenge Front End Challenge 2024 Earth Day Edition🌎CSS ART SUBMISSION: "Plants: The Heart of Our Planet"
April 19, 2024
frontendchallenge Submission For Front-end Challenge 2024 - Earth Day Edition 🌍 CSS ART: A Visual Exploration of Our Planet
April 18, 2024