× Home About Projects Contact Privacy Policy Terms & Conditions
< Return
Skewed Menu Example

How to Create a Stylish Animated Card with CSS Waves (Step by Step)

Want to make your website stand out? In this tutorial, you’ll learn how to design an elegant animated card using pure HTML and CSS. The project features rotating color waves, a glowing background, and a centered "Subscribe" text — perfect for modern landing pages or profile cards.

Quick Summary: Create an HTML structure with a centered card, use CSS to style the waves, and apply animation with the @keyframes property to create a rotating color effect.

Step 1: Set Up the Basic HTML Structure

Start with a simple HTML file. This will include the main container (.e-card) and three .wave elements to form the animation layers.

HTML structure of the animated card

Step 2: Style the Page Background and Center the Card

Use Flexbox to center the card on the screen. Add a dark background color (#2f2f2f) to make the waves stand out.

Centered card with dark background

Step 3: Create the Card Container

Add a .e-card class with rounded corners, a transparent background, and a subtle shadow for depth. The overflow: hidden property ensures that the waves stay inside the card borders.

CSS card container style

Step 4: Design the Wave Animation

Each .wave div uses a linear gradient to create a colorful layer. With the @keyframes wave rule, the layers rotate continuously, creating a soothing motion effect.

CSS wave animation

Step 5: Add the Icon and Text

You can place your logo or icon inside the card using the <img> tag. Below it, add a Subscribe title or any message you like. The example below positions both using position: absolute;.

Adding text and icon to the card

Step 6: Final Touches

Adjust animation speed, colors, and transparency to match your website theme. You can also experiment with more gradient layers or icons for a unique look.

Final animated card result

Conclusion

That’s it! You’ve built a smooth, modern animated card using only HTML and CSS. This design is lightweight, responsive, and perfect for call-to-action sections like “Subscribe” or “Join Now”. Customize it with your own images and text to make it truly yours.

SEO Keywords: CSS animated card, HTML wave animation, subscribe button design, pure CSS effects, creative front-end projects

10 wait...