DEV Community

Menula De Silva
Menula De Silva

Posted on

πŸ¦‡ Spooky Portal - Halloween CSS Art πŸŒ™βœ¨

Frontend Challenge CSS Art Submission πŸ¦‡πŸŽƒ

This is a submission for Frontend Challenge - Halloween Edition, CSS Art.

🎨 Inspiration

Halloween has always been about that magical mix of spooky and beautiful β€” the glowing moon, the flying bats, and the mysterious night sky.
I wanted to capture that cinematic moment when bats flutter under a full moon β€” purely with HTML and CSS (no images or JS needed!).

The goal was to make it feel alive β€” with random bat movement, glowing lights, and soft night colors that bring the Halloween vibe to life.


πŸ‘» Demo

Here’s the live version of my spooky CSS art:
πŸ‘‰ View Demo on GitHub Pages
🧩 View Source on GitHub


πŸ•―οΈ Journey

This started as a simple CSS moon animation… and then the bats came in πŸ¦‡

What I learned:

  • Creating natural motion using @keyframes and animation-delay randomness.
  • Layering effects with pure CSS gradients and transforms.
  • Making light glows and depth using box-shadow and filter: blur().
  • Keeping it responsive and performant while keeping that β€œspooky magic.”

What I’m proud of:

  • The entire animation runs on zero JavaScript.
  • The bats randomly move across the sky, giving life to the art.
  • Smooth night ambiance created using CSS-only glow effects.

What’s next:

I’d love to expand this into a CSS Art Halloween Scene Generator, where each reload spawns a unique night sky with different moon and bat arrangements πŸŒ•πŸ’«


🧑 Credits & License

Made with love by @dmsmenula πŸ§™β€β™‚οΈ
Licensed under the MIT License.

Top comments (6)

Collapse
 
ranil_ranil_cf7a9dbffed12 profile image
Ranil Ranil

Nice Work Menula !

Collapse
 
dmsmenula profile image
Menula De Silva

Thank You

Collapse
 
ranil_ranil_cf7a9dbffed12 profile image
Ranil Ranil

Link Please

Collapse
 
dmsmenula profile image
Comment deleted
Collapse
 
ranil_ranil_cf7a9dbffed12 profile image
Ranil Ranil

thanks

Some comments may only be visible to logged-in visitors. Sign in to view all comments.