DEV Community

Cover image for Recreating a GIF with CSS: Earth Day Edition
Bhalli B
Bhalli B

Posted on

9 2 2 2 2

Recreating a GIF with CSS: Earth Day Edition

This is a submission for Frontend Challenge v24.04.17, Glam Up My Markup: Earth Day Celebration Landing Page

Mainly I am not a participant of this Challenge, just did it for fun. The Credit for initial effort goes to @arndom

Inspiration

When I saw the challenge I wanted to participate to improve my skills, and when I saw the GIF in the announcement post I knew what to attempt. I haven't done any "complex" animations with CSS alone, so this was the right time to try.

Image description

What I Built

Keeping in mind The above GIF, I created an animation of EARTH as in the GIF You can see the demo below

Demo

It's doesn't loop, so click rerun↗️ to replay

Journey

Upon reading the announcement and seeing the GIF, I got the idea of an animation like this. I had to attempt a CSS recreation. It was unique, outside my comfort zone, and something worth doing and sharing.

Working on it was both challenging and inspiring.
Happy coding :)

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (9)

Collapse
 
schemetastic profile image
Schemetastic (Rodrigo) β€’

Hey! Very good entry!

If you want to improve it, maybe you could add a very slight 3D rotation to the eyes and mouth when they look in different directions... you could also animate a little the leafs of the tree, you could use transform-origin to choose the anchor point of each leaf and rotate them accordingly... also, some elements have a wobbly-like effect, you could use skew to do that.

Hope this helps.

Collapse
 
bhallibhai profile image
Bhalli B β€’

Please provide feedback on my performance, or kindly offer any suggestions for potential improvements. Your input is greatly valued and appreciated.

Collapse
 
arndom profile image
Nabil Alamin β€’ β€’ Edited
Comment hidden by post author
Collapse
 
bhallibhai profile image
Bhalli B β€’ β€’ Edited

Already mentioned above I guess, That I Recreated, All the created goes to you, Man :)
I update this for fun, If you still have problem I can delete this post and send the updated code to you @arndom
I hardly got time to do stuff like this. I am a busy person, Usually Don't have enough time.

Thread Thread
 
arndom profile image
Nabil Alamin β€’

It's all good now 🀝

Collapse
 
arndom profile image
Nabil Alamin β€’

Glad to see the attribution 🀝.

Generally, it's alright to build on top of open-source but always give references, so as not to make the original author/creator feel cheated.

Thread Thread
 
bhallibhai profile image
Bhalli B β€’

I think you overthought, But it's cool Man.

Thread Thread
 
arndom profile image
Nabil Alamin β€’

Yh it's all good, but it's not overthinking if 99% of your work is copied and phrased as someone's else, even if it is just for fun. It might not have been your intention but it's how it initially appeared.

Collapse
 
hurerabhalli profile image
Hurera Bhalli β€’ β€’ Edited

Looking good and cool enough,

Some comments have been hidden by the post's author - find out more

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

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

Okay