All Patterns

Pricing Glow CSS

Pricing Glow CSS Pattern

Pure CSS Implementation - No JavaScript required. All animations use CSS @property and @keyframes for smooth, performant animated gradient borders.

How It Works

  • Uses CSS @property to register --glow-angle as an animatable custom property
  • Conic gradients rotate via CSS keyframe animations
  • Toggle controls (animated border, soft glow) work via CSS attribute selectors - no JS needed
  • Glow color derived dynamically using CSS color-mix() function

Component Properties

PropertyTypeDescription
glowColorcolorBase color for all glow effects
glowDirectionselectcw (clockwise) or ccw (counter-clockwise)
glowLengthselectArc length: full, medium, short, or minimal
animatedBorderselectShow/hide rotating gradient border
softGlowselectShow/hide pulsing background blob
cardVariantselect--dark or --light theme
tierNamestringPricing tier label
currencySymbolstringCurrency symbol
priceAmountstringPrice value
pricePeriodstringBilling period text
billingNotestringAdditional billing info
feature1-5stringFeature list items (5 slots)
ctaTextstringButton text
ctaUrlstringButton link URL

⚠️ Required: External CSS File

Some CSS cannot live in Etch's style system and requires a separate file:

  • @property declarations must be at document root level (not inside selectors)
  • @keyframes animations must be at document root level
  • Pseudo-element rules (::after) - Etch doesn't process nested CSS syntax

CSS File Options

Choose ONE of these methods to include the required CSS:

  1. MU-Plugin (recommended): /wp-content/mu-plugins/pricing-glow-css-animations.php
  2. Code Snippets plugin: Paste the PHP code as a snippet
  3. Functionality plugin: Add to your site's custom plugin
  4. Theme functions.php: Add to child theme's functions.php

CSS Architecture

  • In Etch: All component styles (search pricing-glow-css__)
  • In external file: @property, @keyframes, and ::after pseudo-elements only