Skip to content

Pricing Cards with Hover

Three pure CSS pricing cards with hover lift and a featured plan that has a spinning conic-gradient border, glow and Most popular badge.

Also known as: pricing cards, pricing plans section, featured plan card, subscription plans

Pricing Cards with Hover live demo

Open in new tab

Pure CSS code (HTML, CSS)

Three pricing cards built with pure CSS and no JavaScript. The middle plan is a dark featured card with a spinning gradient border, a soft colored glow and a "Most popular" badge, while every card lifts on hover. Use it on SaaS landing pages, membership sites and product upgrade screens.

How it works

The root section.prc-root holds a centered header and a .prc-grid of three article.prc-card elements. Each card contains the plan name .prc-name, a short .prc-desc, the price block .prc-price (.prc-currency, .prc-amount and .prc-period), a call-to-action link .prc-cta and a .prc-features list. Included features show a check icon; items with .is-off show a cross, are struck through and contain hidden "Not included" text.

The featured plan uses .prc-card--featured. Its own background is transparent: the ::before pseudo-element paints the dark fill on the padding box and a conic-gradient on the border box, which produces a 2px gradient ring. The ::after pseudo-element repeats the gradient behind the card with a large blur to create the glow. The gradient angle is the custom property --prc-angle, registered with @property so the prc-spin keyframes can animate it from 0 to 360 degrees. .prc-grid uses isolation: isolate so the glow stays behind the card but above the section background.

Hover and keyboard focus inside a card (:focus-within) move it up with the translate property, deepen the shadow and tint the border. From 900px the grid switches to three columns and the featured card is slightly enlarged with scale.

Customization

  • --prc-glow-1, --prc-glow-2 and --prc-glow-3 on .prc-root: the three colors of the spinning border, the glow, the badge and the featured button.
  • --prc-spin: duration of one full border rotation, e.g. 3s for a faster spin.
  • --prc-lift: how far a card moves up on hover, e.g. -4px for a subtler effect.
  • --prc-featured-bg and --prc-featured-text: background and text color of the featured plan.
  • --prc-accent: color of the check icons and focus outlines on the light cards.
  • Move the prc-card--featured class and the .prc-badge paragraph to another card to highlight a different plan.
  • Add class="is-off" to a .prc-features item to mark a feature as not included.

Use cases

  • SaaS landing pages: three plan cards compare features, with a most popular plan standing out
  • Membership sites: included and excluded features are marked with check and cross icons
  • Product upgrade screens: the featured card has a spinning gradient border and a soft glow
  • Software launches: cards lift on hover and focus to guide visitors toward a call-to-action link

Accessibility

The plans are article elements with real h3 headings, and each feature list has an aria-label with the plan name. Icons are aria-hidden, and excluded features are announced with a visually hidden .prc-sr prefix, so the meaning does not rely on the strike-through alone. The call-to-action links show a clear :focus-visible outline, and keyboard focus lifts the card just like hover. With prefers-reduced-motion: reduce the border stops spinning and cards no longer move.

Usage notes

The animated border needs @property support (all current browsers). Where it is missing, the gradient ring still shows but does not rotate. Change the prc-heading id if you place two pricing sections on one page.

Pricing Cards with Hover at a glance

Framework
Pure CSS
Code
HTML, CSS
JavaScript
Not needed, CSS only
Dependencies
None
Layout
Responsive, works on mobile
Category
Pricing Tables
License
Free for personal and commercial use

Questions about this template

Can I use the Pricing Cards with Hover code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

There is nothing to install. Paste the HTML where the component should appear and add the CSS to your stylesheet. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. It is built with HTML and CSS only, so there is no JavaScript to load.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

No dependencies. Pure HTML, CSS and JavaScript.

Pricing Cards with Hover – free Pure CSS pricing table template
Pricing Cards with Hover · free Pure CSS pricing table template

More Pricing Tables

Pricing Cards with Billing Toggle – free Bootstrap 5 pricing table template

Pricing Cards with Billing Toggle

Bootstrap 5 pricing cards with a Monthly / Annual segmented switch that updates prices, savings and yearly totals, plus a highlighted featured plan.

Pricing Table with Feature Tooltips – free Bootstrap 5 pricing table template

Pricing Table with Feature Tooltips

Bootstrap 5 plan comparison table with a highlighted popular plan and info tooltips that explain every feature on hover or keyboard focus.

Pricing with Team Size Range – free Bootstrap 6 pricing table template

Pricing with Team Size Range

Bootstrap 6 per-seat pricing card with a Range slider for team size, volume tiers, a monthly/annual toggle and a live total price.

Dark Pricing Section – free Bootstrap 6 pricing table template

Dark Pricing Section

Dark Bootstrap 6 pricing section with three glass cards, a gradient-bordered recommended plan, a currency Menu and an FAQ link that opens a Drawer with an accordion.

Pricing Comparison Table – free Bootstrap 6 pricing table template

Pricing Comparison Table

Bootstrap 6 feature comparison table across four plans with check icons, a highlighted Pro column, tooltips, a sticky feature column and an Only differences filter.

Pricing Table with Highlighted Plan – free Bootstrap 6 pricing table template

Pricing Table with Highlighted Plan

Bootstrap 6 pricing cards with a raised dark green Most popular plan, gold accents and a team-size Range slider that recalculates every plan's monthly total.