DEV Community

Cover image for How I Added Eye-Catching Animations to My Frontend Projects ✨
Hosein Mahmoudi
Hosein Mahmoudi

Posted on

How I Added Eye-Catching Animations to My Frontend Projects ✨

Have you ever visited a website and thought:

"How did they make that animation?! 😳"

I definitely have.

As a frontend developer, I've always been fascinated by websites with beautiful and smooth animations.

You know those websites where cards move when you hover over them, elements smoothly appear as you scroll, and everything just feels... alive? ✨

For a long time, I had one question:

Did the developer actually build all of these animations from scratch?!

Well... not always πŸ˜„

A while ago, I discovered Aceternity UI, and it completely changed the way I think about adding animations to frontend projects.

πŸš€ Aceternity UI

Aceternity UI is a collection of beautiful and animated UI components that you can use in your projects and customize however you want.

And there are a LOT of them.

You can find things like:

  • ✨ Animated cards
  • 🌌 Background effects
  • πŸ’« Hover animations
  • πŸ–±οΈ Interactive components
  • ⚑ Text animations
  • 🎨 Beautiful UI effects

The best part?

You don't have to reinvent the wheel every time you want to create something visually interesting.

You can start with an existing component, understand how it works, and then customize it to fit your own project.

That's exactly what I did with my portfolio.


πŸ’Ό Experience Section

For the Experience section of my portfolio, I used the Card Spotlight component from Aceternity UI.

Of course, I didn't use it exactly as it was.

I customized it to match the design and style of my portfolio.

Here's the result:

πŸŽ₯ Experience Animation

I really like these kinds of subtle animations because they don't scream:

"HEY! LOOK AT ME! I'M AN ANIMATION!" πŸ˜‚

Instead, they make the UI feel more interactive without getting in the user's way.


πŸš€ Projects Section

For my Projects section, I used another Aceternity UI component called Comet Card.

Again, I customized it to fit my own design.

Here's how it turned out:

πŸŽ₯ Projects Animation

This was one of those moments where I realized:

You really don't need to create every animation from scratch.

Sometimes, the best approach is to find a good starting point and make it your own.


πŸŒ€ And Then There's GSAP...

Aceternity UI wasn't the only tool I used.

I also used GSAP in my portfolio, especially when I wanted more control over animations based on scrolling.

And honestly, this is where things get really interesting. πŸ‘€

Instead of simply saying:

"Animate this element when I hover over it."

I can create animations that react to the user's scroll position.

For example:

Scroll ↓

Element starts moving

↓

Opacity changes

↓

Position changes

↓

Animation progresses

↓

User keeps scrolling

↓

Animation continues

This gives you much more control over how the page feels while the user is navigating through it.

And honestly...

Scroll-based animations can make a portfolio feel completely different. πŸ”₯


🧠 Do You Need to Build Everything From Scratch?

I used to think that using a component library for animations somehow meant I wasn't "really" building the UI myself.

I don't think that anymore.

There's a huge difference between:

Copy β†’ Paste β†’ Done

and:

Understand β†’ Customize β†’ Integrate β†’ Make it yours

Libraries like Aceternity UI can save you a huge amount of time while still giving you the freedom to create something unique.

Instead of spending hours trying to recreate a specific animation from scratch, you can start with a working implementation and spend your time improving the actual user experience.

And I think that's a pretty good trade-off. πŸ˜„


🎨 My Portfolio

If you're curious about how these animations look together, you can check out my portfolio:

πŸ‘‰ My Portfolio

I've used both Aceternity UI and GSAP to create different interactions and animations throughout the website.


Final Thoughts

I think animations are one of those things that can completely change how a user perceives a website.

You don't necessarily need hundreds of animations.

Sometimes, just a few well-designed and subtle interactions can make a website feel much more polished.

And tools like Aceternity UI make experimenting with these ideas much easier.

So if you've ever looked at a beautiful website and wondered:

"How the hell did they make this animation?" πŸ˜‚

Maybe you don't need to start from zero.

Go explore some UI libraries, find something interesting, understand how it works, and make it yours. πŸš€

And if you've used any interesting animation libraries or tools in your projects, I'd love to hear about them!

What are you using for animations these days? πŸ‘‡


πŸ”— Resources

Top comments (3)

Collapse
 
codemaster_121482 profile image
Seif Ahmed

Wow 😳, your portfolio looks incredible! The animations are exceptionally well doneβ€”outstanding work. I just noticed that the country flags aren't loading on my end, but overall, it is absolutely brilliant.

Collapse
 
hoseinmdev profile image
Hosein Mahmoudi

Hi Dear Seif Ahmed

Thanks a lot for the kind words! I'm glad you liked the animations. Thanks for catching the flag issueβ€”I'll look into it and fix it right away 🀍

Collapse
 
codemaster_121482 profile image
Seif Ahmed

You are welcome, my friend 😁!