DEV Community

Ashish prajapati
Ashish prajapati

Posted on

4 1 1

✨"Day 1 with Anime.js β€” Breathing Life into a Static Webpage"

πŸ“Œ Introduction

Hey Devs! πŸ‘‹

Today marks Day 1 of my journey into learning Anime.js, a lightweight JavaScript animation library that makes adding animations to your web projects ridiculously fun and powerful.

In this article, I’ll walk you through how I animated a simple landing page using Anime.js β€” from setup to final smooth transitions.


πŸš€ What I Built

I created a simple landing page with:

  • A navigation bar
  • A hero section with a title, description, and buttons
  • A footer for credit

Then I used Anime.js to animate these sections on page load β€” from logo slides to button scales β€” to give the site a vibrant entrance.


βœ… 10 Micro Tasks I Completed

  1. Setup HTML structure for the layout
  2. Designed the page using Tailwind-inspired clean CSS
  3. Integrated Anime.js via CDN
  4. Created a logo entrance animation with translateX
  5. Added staggered drop-in for navbar items
  6. Applied scaling to the title
  7. Animated text paragraphs with fade and upward motion
  8. Scaled the buttons with subtle bounce
  9. Animated the footer slide-in
  10. Polished animation timing with easing and duration

πŸ’» Tech Stack

  • HTML5 & CSS3
  • JavaScript
  • Anime.js
  • Google Fonts (Poppins)

πŸ”₯ Projects I Created

  1. Landing Page with Anime.js Elements

    Check out this Pen I made!

  2. Smooth Intro Animation with Staggered Effects

    Check out this Pen I made!


πŸ“ GitHub Repository

πŸ”— GitHub Repo β€” animejs_learning

Browse through the full source code and contribute if you’d like!


🧠 What I Learned

  • How to integrate Anime.js with ease
  • Animate multiple DOM elements with stagger
  • Utilize properties like translate, opacity, scale
  • Fine-tune UX with custom easing and durations

πŸ§ͺ What’s Next?

This was just the start. In upcoming sessions, I plan to dive into:

  • Anime.js timelines for complex sequences
  • SVG path animations for creative motion
  • Scroll-based triggers for interactive storytelling

πŸ™Œ Final Thoughts

This experiment showed me how easy and elegant Anime.js is. If you're into frontend or just want to spice up your UIs β€” Anime.js deserves a spot in your toolbox.

Let’s animate the web, one pixel at a time. ✨


πŸ§‘β€πŸ’» Author

Ashish Prajapati

πŸ”— GitHub

πŸ“ Dev.to

πŸ’Ό LinkedIn

Postmark Image

20% off for developers shipping features, not fixing email

Build your product without worrying about email infrastructure. Our reliable delivery, detailed analytics, and developer-friendly API let you focus on shipping features that matter.

Start free

Top comments (6)

Collapse
 
nevodavid profile image
Nevo David β€’

Wild seeing a plain webpage get jazzed up with a few slick moves, kind of like watching paper turn into a pop-up book, but it's pretty good. Does adding animations like this ever distract from the main info, or just make things more fun?

Collapse
 
anticoder03 profile image
Ashish prajapati β€’

Totally get what you meanβ€”animations can really breathe life into a page! πŸͺ„ It’s like adding personality without changing the core content. I think when used with purpose (like guiding the user’s focus or highlighting important stuff), they enhance the experience. But yeah, if it’s all flash with no function, it can definitely pull attention away. Striking that balance is key!

Collapse
 
madhurima_rawat profile image
Madhurima Rawat β€’

This is a good idea, you can write this as series! Would be easier to find and organize parts.

I have seen your other articles too, this series feature would be really useful for you to organize your articles as I have seen you write like day 1, day 2.

Collapse
 
anticoder03 profile image
Ashish prajapati β€’

Thank you so much for the kind words and thoughtful suggestion! πŸ™Œ
I'm really glad you've been following the content and found value in the day-by-day format. Creating a proper series sounds like a great idea to keep everything organized and easy to followβ€”definitely something I'll start doing going forward. Appreciate you taking the time to share your thoughts! 😊

Collapse
 
madhurima_rawat profile image
Madhurima Rawat β€’

I'm really glad you liked it! 🌟 If you ever need any help with anything, feel free to ask.
Also, I checked out your GSAP animation websitesβ€”great work! You could consider creating a single index page to link all the separate days. In fact, a dedicated "Resources" page might be even better, where you can organize and link all your Anime.js and GSAP projects or Codepens in one place.

Looking forward to seeing more awesome content! πŸš€

Thread Thread
 
anticoder03 profile image
Ashish prajapati β€’

Thank you so much! 😊 Your words mean a lot to me. I'm really enjoying this learning journey and experimenting with different animations. I’ve actually been creating Pens along the way to document my progress, and I’m also maintaining a GitHub repo to keep everything organized.

I really appreciate your suggestion about a central index or "Resources" pageβ€”that's a brilliant idea! I’ll definitely work on putting everything together in one place soon.

Thanks again for the support and encouragement! πŸš€βœ¨

Postmark Image

The email service that speaks your language

Whether you code in Ruby, PHP, Python, C#, or Rails, Postmark's robust API libraries make integration a breeze. Plus, bootstrapping your startup? Get 20% off your first three months!

Start free

πŸ‘‹ Kindness is contagious

If this article connected with you, consider tapping ❀️ or leaving a brief comment to share your thoughts!

Okay