Home Card Design Animated Membership Plans Using HTML, CSS & JavaScript

Animated Membership Plans Using HTML, CSS & JavaScript

Share

Create beautiful and modern Animated Membership Plans using HTML, CSS and JavaScript. This responsive pricing page features stylish membership cards, glowing gradient effects, smooth animations and interactive pricing options.

Features

  • Modern dark UI/UX design
  • Free, Pro and Business membership plans
  • Large and attractive pricing typography
  • Monthly and yearly pricing toggle
  • Animated hover and glowing effects
  • Responsive mobile and tablet layout
  • Gradient buttons and highlighted popular plan
  • Font Awesome icons

Technologies Used

This Animated Membership Plans design is perfect for SaaS websites, subscription platforms, online services and membership websites.

Download or copy the complete source code and customize the pricing, colors and membership features according to your project.

You will also like this post

  1. Designing Stunning Team Member Card with HTML & CSS
  2. Responsive Service Card Design HTML & CSS
  3. Responsive Service Card Design using HTML & CSS
  4. Pricing Table CSS: Simple Tricks for a Better Design.
  5. Simple Code Tricks to Make Your Postcard Slider Look Better
  6. How to Make Animated Cards with HTML and CSS
  7. How to Create Animated Service Cards Using HTML & CSS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Animated Membership Plans Code By Mycodingtutorial</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">

<style>
*{margin:0;padding:0;box-sizing:border-box}

:root{
 --bg:#07091c;
 --card:#10152e;
 --purple:#853bff;
 --blue:#438bff;
 --text:#f7f7ff;
 --muted:#a5abc9;
 --border:rgba(255,255,255,.1);
}

body{
 font-family:Inter,sans-serif;
 background:var(--bg);
 color:var(--text);
 overflow-x:hidden;
}

.membership{
 min-height:100vh;
 padding:75px 25px 55px;
 position:relative;
 overflow:hidden;
 isolation:isolate;
}

.glow{
 position:absolute;
 width:480px;
 height:480px;
 border-radius:50%;
 filter:blur(120px);
 opacity:.25;
 z-index:-1;
 pointer-events:none;
}

.glow.one{background:#6225ff;top:-200px;left:-150px}
.glow.two{background:#174dff;right:-150px;bottom:-200px}

.particles span{
 position:absolute;
 width:6px;height:6px;
 background:#9a6aff;
 border-radius:50%;
 animation:float 7s ease-in-out infinite;
 opacity:.7;
}

.particles span:nth-child(1){top:15%;left:10%}
.particles span:nth-child(2){top:32%;left:85%;animation-delay:1s}
.particles span:nth-child(3){top:75%;left:18%;animation-delay:2s}
.particles span:nth-child(4){top:65%;left:92%;animation-delay:3s}
.particles span:nth-child(5){top:12%;left:75%;animation-delay:4s}

@keyframes float{
 0%,100%{transform:translateY(0) scale(1)}
 50%{transform:translateY(-30px) scale(1.5)}
}

.container{
 max-width:1200px;
 margin:auto;
 position:relative;
 z-index:1;
}

.hero{
 text-align:center;
 margin-bottom:55px;
 animation:fadeUp .8s ease both;
}

.hero-badge{
 display:inline-flex;
 align-items:center;
 gap:9px;
 padding:10px 19px;
 border:1px solid rgba(151,91,255,.5);
 background:rgba(111,50,255,.13);
 border-radius:40px;
 color:#c6a7ff;
 font-size:12px;
 font-weight:700;
 margin-bottom:23px;
}

.hero h1{
 font-size:clamp(35px,6vw,58px);
 font-weight:800;
 letter-spacing:-2px;
 margin-bottom:15px;
}

.gradient-text{
 background:linear-gradient(90deg,#9d5aff,#5ca9ff);
 -webkit-background-clip:text;
 background-clip:text;
 color:transparent;
}

.hero p{
 color:var(--muted);
 font-size:15px;
 line-height:1.8;
}

.billing{
 display:flex;
 justify-content:center;
 align-items:center;
 gap:15px;
 margin-top:28px;
}

.billing button{
 border:0;
 background:transparent;
 color:#a8acc4;
 padding:12px 20px;
 font-size:13px;
 font-weight:700;
 border-radius:30px;
 cursor:pointer;
 transition:.3s;
}

.billing button.active{
 background:linear-gradient(100deg,#812aff,#438bff);
 color:white;
 box-shadow:0 0 22px rgba(113,61,255,.4);
}

.save{
 color:#36e6a0;
 font-size:10px;
 font-weight:800;
 background:rgba(54,230,160,.1);
 padding:7px 11px;
 border-radius:20px;
}

/* Plans */

.plans{
 display:grid;
 grid-template-columns:repeat(3,1fr);
 gap:25px;
 align-items:center;
}

.plan{
 position:relative;
 background:linear-gradient(145deg,rgba(25,31,64,.95),rgba(12,17,40,.96));
 border:1px solid rgba(117,126,190,.2);
 border-radius:20px;
 padding:30px 27px;
 overflow:hidden;
 transition:transform .4s,box-shadow .4s,border-color .4s;
 animation:fadeUp .8s ease both;
}

.plan:nth-child(2){animation-delay:.15s}
.plan:nth-child(3){animation-delay:.3s}

.plan:before{
 content:"";
 position:absolute;
 inset:0;
 background:linear-gradient(130deg,rgba(125,69,255,.1),transparent 45%);
 opacity:0;
 transition:.4s;
 pointer-events:none;
}

.plan:hover{
 transform:translateY(-12px);
 border-color:#8654ff;
 box-shadow:0 20px 55px rgba(77,42,255,.17);
}

.plan:hover:before{opacity:1}

.plan.featured{
 border:1px solid #985aff;
 background:linear-gradient(145deg,#26105d,#101e58 90%);
 box-shadow:0 0 30px rgba(132,55,255,.22);
 transform:scale(1.04);
}

.plan.featured:hover{
 transform:scale(1.04) translateY(-12px);
 box-shadow:0 20px 60px rgba(132,55,255,.35);
}

.popular{
 position:absolute;
 right:-36px;
 top:21px;
 transform:rotate(45deg);
 width:145px;
 text-align:center;
 background:linear-gradient(90deg,#ffc94d,#ffe88c);
 color:#292044;
 padding:8px;
 font-size:10px;
 font-weight:800;
}

.plan-top{
 display:flex;
 align-items:center;
 gap:15px;
 margin-bottom:27px;
}

.plan-icon{
 width:55px;
 height:55px;
 display:grid;
 place-items:center;
 font-size:22px;
 border-radius:15px;
 color:#fff;
 background:linear-gradient(140deg,#258dff,#3049e7);
 box-shadow:0 8px 25px rgba(49,115,255,.3);
}

.pro .plan-icon{
 background:linear-gradient(140deg,#ad38ff,#5429e8);
 box-shadow:0 8px 25px rgba(151,56,255,.35);
}

.business .plan-icon{
 background:linear-gradient(140deg,#e6ae3b,#a66b11);
 color:#fff2bc;
}

.plan-top h2{
 font-size:19px;
 margin-bottom:7px;
}

.plan-top p{
 color:var(--muted);
 font-size:11px;
}

.price{
 display:flex;
 align-items:baseline;
 gap:8px;
 margin-bottom:28px;
}

.price strong{
 font-size:43px;
 letter-spacing:-2px;
}

.price span{
 color:var(--muted);
 font-size:12px;
}

span.amount {
    font-size: 43px;
    color: #fff;
}

.plan-description{
 color:var(--muted);
 font-size:12px;
 line-height:1.7;
 margin-top:-18px;
 margin-bottom:25px;
}

.features{
 list-style:none;
 display:flex;
 flex-direction:column;
 gap:16px;
 margin-bottom:30px;
}

.features li{
 display:flex;
 align-items:center;
 gap:11px;
 font-size:12px;
 color:#e0e3f5;
}

.features i{
 width:19px;
 height:19px;
 border-radius:50%;
 display:grid;
 place-items:center;
 background:rgba(65,143,255,.2);
 color:#63aaff;
 font-size:10px;
}

.pro .features i{
 background:rgba(177,72,255,.2);
 color:#c46cff;
}

.business .features i{
 background:rgba(255,195,60,.16);
 color:#ffc84d;
}

.plan-btn{
 width:100%;
 padding:15px;
 border-radius:10px;
 border:1px solid #438bff;
 background:transparent;
 color:white;
 font-size:12px;
 font-weight:800;
 transition:.3s;
 cursor:pointer;
}

.plan-btn:hover{
 background:#438bff;
 box-shadow:0 0 22px rgba(67,139,255,.4);
}

.pro .plan-btn{
 background:linear-gradient(90deg,#862eff,#4d67ff);
 border:0;
}

.pro .plan-btn:hover{
 box-shadow:0 0 25px rgba(151,67,255,.55);
 transform:translateY(-2px);
}

.business .plan-btn{
 border-color:#d6a43e;
 color:#ffcf62;
}

.business .plan-btn:hover{
 background:#d6a43e;
 color:#161329;
}

/* Benefits */

.benefits{
 display:grid;
 grid-template-columns:repeat(4,1fr);
 gap:20px;
 margin-top:65px;
 padding-top:30px;
 border-top:1px solid var(--border);
}

.benefit{
 display:flex;
 align-items:center;
 justify-content:center;
 gap:13px;
}

.benefit i{
 font-size:27px;
 color:#7c7aff;
}

.benefit h4{
 font-size:12px;
 margin-bottom:6px;
}

.benefit p{
 color:var(--muted);
 font-size:10px;
}

@keyframes fadeUp{
 from{opacity:0;transform:translateY(30px)}
 to{opacity:1;transform:translateY(0)}
}

/* Responsive */

@media(max-width:950px){
 .plans{grid-template-columns:repeat(2,1fr)}
 .plan.featured{transform:none}
 .plan.featured:hover{transform:translateY(-12px)}
 .business{grid-column:1/-1}
}

@media(max-width:600px){
 .membership{padding:55px 15px 35px}
 .hero{margin-bottom:35px}
 .hero h1{letter-spacing:-1.5px}
 .hero p{font-size:12px}
 .plans{grid-template-columns:1fr;gap:20px}
 .business{grid-column:auto}
 .plan{padding:27px 22px}
 .benefits{grid-template-columns:repeat(2,1fr);gap:25px 10px}
 .benefit{justify-content:flex-start}
 .price strong{font-size:38px}
}
</style>
</head>

<body>

<section class="membership">

<div class="glow one"></div>
<div class="glow two"></div>

<div class="particles">
 <span></span><span></span><span></span><span></span><span></span>
</div>

<div class="container">

<header class="hero">

 <div class="hero-badge">
  <i class="fa-solid fa-crown"></i>
  JOIN OUR MEMBERSHIP
 </div>

 <h1>Membership <span class="gradient-text">Plans</span></h1>

 <p>Unlock more features and take your experience to the next level.</p>

 <div class="billing">
  <button class="active" id="monthly">Monthly</button>
  <button id="yearly">Yearly</button>
  <span class="save">SAVE 50%</span>
 </div>

</header>

<div class="plans">

<!-- FREE PLAN -->

<div class="plan">

 <div class="plan-top">
  <div class="plan-icon"><i class="fa-solid fa-paper-plane"></i></div>
  <div>
   <h2>Free Plan</h2>
   <p>Perfect for beginners</p>
  </div>
 </div>

 <div class="price">
  <strong>$<span class="amount" data-month="0" data-year="0">0</span></strong>
  <span>/ month</span>
 </div>

 <p class="plan-description">Get started with essential features at no cost.</p>

 <ul class="features">
  <li><i class="fa-solid fa-check"></i> Access to basic features</li>
  <li><i class="fa-solid fa-check"></i> 1 GB storage space</li>
  <li><i class="fa-solid fa-check"></i> Community support</li>
  <li><i class="fa-solid fa-check"></i> Regular updates</li>
 </ul>

 <button class="plan-btn" onclick="selectPlan('Free')">
  Get Started <i class="fa-solid fa-arrow-right"></i>
 </button>

</div>

<!-- PRO PLAN -->

<div class="plan featured pro">

 <div class="popular">POPULAR</div>

 <div class="plan-top">
  <div class="plan-icon"><i class="fa-solid fa-gem"></i></div>
  <div>
   <h2>Pro Plan</h2>
   <p>Most popular choice 🔥</p>
  </div>
 </div>

 <div class="price">
  <strong>$<span class="amount" data-month="19" data-year="9.50">19</span></strong>
  <span>/ month</span>
 </div>

 <p class="plan-description">Powerful features for creators and professionals.</p>

 <ul class="features">
  <li><i class="fa-solid fa-check"></i> All Free features</li>
  <li><i class="fa-solid fa-check"></i> 100 GB storage space</li>
  <li><i class="fa-solid fa-check"></i> Priority support</li>
  <li><i class="fa-solid fa-check"></i> Advanced analytics</li>
  <li><i class="fa-solid fa-check"></i> Exclusive resources</li>
 </ul>

 <button class="plan-btn" onclick="selectPlan('Pro')">
  Start Pro Plan <i class="fa-solid fa-arrow-right"></i>
 </button>

</div>

<!-- BUSINESS PLAN -->

<div class="plan business">

 <div class="plan-top">
  <div class="plan-icon"><i class="fa-solid fa-crown"></i></div>
  <div>
   <h2>Business Plan</h2>
   <p>For professionals</p>
  </div>
 </div>

 <div class="price">
  <strong>$<span class="amount" data-month="49" data-year="24.50">49</span></strong>
  <span>/ month</span>
 </div>

 <p class="plan-description">Everything you need to grow your business.</p>

 <ul class="features">
  <li><i class="fa-solid fa-check"></i> All Pro features</li>
  <li><i class="fa-solid fa-check"></i> Unlimited storage</li>
  <li><i class="fa-solid fa-check"></i> 24/7 dedicated support</li>
  <li><i class="fa-solid fa-check"></i> Custom integrations</li>
  <li><i class="fa-solid fa-check"></i> Advanced security</li>
 </ul>

 <button class="plan-btn" onclick="selectPlan('Business')">
  Go Business <i class="fa-solid fa-arrow-right"></i>
 </button>

</div>

</div>

<!-- BENEFITS -->

<div class="benefits">

 <div class="benefit">
  <i class="fa-solid fa-bolt"></i>
  <div><h4>Instant Access</h4><p>Get started in seconds</p></div>
 </div>

 <div class="benefit">
  <i class="fa-solid fa-shield-halved"></i>
  <div><h4>Secure & Safe</h4><p>Your data is protected</p></div>
 </div>

 <div class="benefit">
  <i class="fa-solid fa-headset"></i>
  <div><h4>24/7 Support</h4><p>We're here to help</p></div>
 </div>

 <div class="benefit">
  <i class="fa-regular fa-star"></i>
  <div><h4>Cancel Anytime</h4><p>No hidden fees</p></div>
 </div>

</div>

</div>
</section>

<script>
const monthly=document.getElementById('monthly');
const yearly=document.getElementById('yearly');
const amounts=document.querySelectorAll('.amount');

function setBilling(type){
 monthly.classList.toggle('active',type==='monthly');
 yearly.classList.toggle('active',type==='yearly');

 amounts.forEach(amount=>{
  amount.textContent=type==='monthly'
   ? amount.dataset.month
   : amount.dataset.year;
 });
}

monthly.addEventListener('click',()=>setBilling('monthly'));
yearly.addEventListener('click',()=>setBilling('yearly'));

function selectPlan(plan){
 alert('You selected the '+plan+' Membership Plan. Connect this button to your checkout or registration page.');
}
</script>

</body>
</html>
Animated Membership Plans

How Does This Membership Pricing Page Work?

The membership pricing page displays three subscription options: Free, Pro and Business. Each plan has its own pricing, features and call-to-action button. Visitors can compare the available plans and choose the option that best matches their requirements.

The monthly and yearly pricing toggle allows users to switch between billing periods and view updated prices. CSS animations add smooth hover effects, while gradient backgrounds and glowing elements make the pricing cards visually attractive.

JavaScript handles the interactive pricing functionality, making the page more engaging and user-friendly.

Why Use Animated Membership Plans?

A well-designed pricing section helps visitors understand your services and subscription options. Highlighting a popular plan can guide users towards an appropriate choice, while responsive layouts ensure the page works across desktops, tablets and mobile devices.

This Animated Membership Plans design is perfect for SaaS websites, subscription platforms, online services, digital products and membership websites. You can also customize the colors, pricing, plan names and features to match your website branding.

Conclusion

The Animated Membership Plans Using HTML, CSS & JavaScript project is a great way to create modern and responsive pricing sections. With smooth animations, attractive pricing cards and interactive billing options, you can build a professional membership page for any website.


Post Rating
6.4 / 10
User rating: 6.4 / 10
Rate this post
Click a number to rate this article.
Mycodingtutorial

Web Designer & Developer

Hello, I’m Mohit, is a PHP Developer and Web Designer skilled in PHP, HTML, CSS, JavaScript, MySQL, and WordPress. He creates responsive, modern, and user-friendly websites with a focus on clean UI/UX design.

-->