LayerwiseLayerwise
  • Features
  • Pricing
  • Templates
  • Docs
DownloadDownload
FeaturesPricingTemplatesDocsAI Website BuilderVibe CodingPersonal Software
DownloadDownload
  1. Glossary
  2. /
  3. Visual styles

Glassmorphism

Also called frosted glass or glass UI

A visual style where panels look like frosted glass: translucent, blurred backgrounds with a thin light border over colorful shapes.

export function GlassPricingCard() {
  return (
    <div className='relative grid min-h-96 place-items-center overflow-hidden bg-slate-950 p-8'>
      {/* Glass only reads as glass with something vivid behind it. */}
      <div className='absolute -top-16 -left-10 size-72 rounded-full bg-blue-500 blur-3xl' />
      <div className='absolute -right-10 -bottom-16 size-72 rounded-full bg-pink-500 blur-3xl' />
      {/* Solid slate where backdrop-filter isn't supported. */}
      <article className='relative w-80 rounded-3xl border border-white/30 bg-slate-800 p-6 text-white shadow-[0_8px_32px_rgb(0_0_0/0.12)] backdrop-blur-lg backdrop-saturate-160 supports-backdrop-filter:bg-white/15'>
        <h2 className='text-sm font-medium'>Pro</h2>
        <p className='mt-2 text-4xl font-semibold'>
          $24<span className='text-base font-normal'>/month</span>
        </p>
        <p className='mt-2 text-sm'>Unlimited projects and custom domains.</p>
        <button
          type='button'
          className='mt-6 w-full rounded-full bg-white py-2.5 text-sm font-medium text-slate-900'
        >
          Upgrade
        </button>
      </article>
    </div>
  );
}
Restyle the pricing card as glassmorphism: background rgba(255, 255, 255, 0.15), backdrop-filter: blur(16px) saturate(160%), a 1px border at rgba(255, 255, 255, 0.3), 24px radius, and a soft shadow, placed over two large blurred gradient blobs in blue and pink. Keep body text at 4.5:1 contrast, and use a solid background where backdrop-filter is not supported.

Paste into Layerwise or any AI coding tool.

What is Glassmorphism?

Glassmorphism makes cards and panels look like sheets of frosted glass floating above a colorful background. The recipe is a semi-transparent fill, backdrop-filter: blur() to soften whatever is behind, a thin light border to catch the edge, and a soft shadow. It only reads as glass when something vivid sits behind it, such as gradient blobs or a photo.

It works well for hero cards, music and media widgets, sign-in panels over imagery, and floating toolbars. Apple brought frosted blur into the mainstream with iOS 7 in 2013, and the name glassmorphism caught on around 2020.

Contrast is the main risk: text over a busy, shifting background can become hard to read. Raise the fill opacity behind text, keep the blur around 12 to 24px, and check contrast against the brightest and darkest parts of the background. Large blurred areas can also slow down low-end phones.

Often confused with

Liquid glass
Liquid glass is Apple’s 2025 material, which stays clearer and bends and reflects light at its edges. Glassmorphism is a flat frosted blur with a light border.

Related terms

All terms

Liquid glass

Apple’s translucent interface material from 2025 that bends, reflects, and tints the content behind it, with bright highlights along its edges.

Blur

A softening effect made with CSS filter: blur() on an element itself, or backdrop-filter: blur() on whatever shows through it from behind.

Mesh gradient

A smooth, multicolor gradient where several colors blend outward from different points, like paint mixing, often used for hero backgrounds.

Aurora background

A background of soft, blurred color ribbons that drift slowly, like the northern lights, used behind hero sections and landing pages.

Build it with Layerwise

Describe your app, watch it run in a live preview, and publish it with a database, storage, and sign-in built in.

DownloadDownloadRead the docs
LayerwiseLayerwise

Build full-stack web apps in minutes with AI.

Product

  • Features
  • Pricing
  • Download
  • Templates

Solutions

  • AI Website Builder
  • Vibe Coding
  • Personal Software

Resources

  • Documentation
  • Changelog
  • Blog
  • Vibe Coding Glossary
  • llms.txt
  • llms-full.txt

Company

  • About
  • Contact

Legal

  • Privacy
  • Analytics Privacy
  • Terms
  • Security
  • Abuse

© 2026 Layerwise. All rights reserved.

Entrances & exits

  • Fade in
  • Slide in
  • Scale in
  • Pop in
  • Blur in
  • Reveal animation
  • Enter and exit animations

Timing & sequencing

  • Duration
  • Delay
  • Keyframes
  • Tweening
  • Stagger
  • Orchestration
  • Fill mode
  • Stepped animation
  • Looping animation
  • Yoyo animation

Easing

  • Easing
  • Linear easing
  • Ease-in
  • Ease-out
  • Ease-in-out
  • Cubic-bezier
  • Asymmetric easing
  • Overshoot easing

Springs & physics

  • Spring animation
  • Stiffness
  • Damping
  • Mass
  • Bounce
  • Velocity
  • Momentum
  • Interruptible animation
  • Rubber-banding

Transforms

  • Translate
  • Scale
  • Rotate
  • Skew
  • 3D flip
  • Perspective
  • Transform origin
  • Origin-aware animation

State transitions

  • Crossfade
  • Morph
  • Shared element transition
  • Layout animation
  • Height auto animation
  • Direction-aware transition
  • Continuity transition
  • Page transition
  • View Transitions API

Scroll effects

  • Scroll reveal
  • Scroll-driven animation
  • Parallax scrolling
  • Scrollytelling
  • Scroll pinning
  • Horizontal scroll section
  • Scroll progress bar
  • Scroll snap
  • Smooth scrolling

Interaction feedback

  • Hover effect
  • Press feedback
  • Ripple effect
  • Shake animation
  • Hold to confirm
  • Drag gesture
  • Drag to reorder
  • Swipe to dismiss
  • Pull to refresh
  • Magnetic button
  • Custom cursor
  • 3D tilt card
  • Spotlight card

Text effects

  • Typewriter effect
  • Text scramble
  • Split text animation
  • Text morph
  • Rotating words
  • Gradient text
  • Shimmer text
  • Number ticker
  • Tabular numbers
  • Underline animation

Loops & ambient motion

  • Marquee
  • Pulse animation
  • Float animation
  • Orbit animation
  • Idle animation
  • Particle background
  • Border beam
  • Confetti
  • Animated gradient

Visual effects

  • Blur
  • Clip-path
  • Mask
  • Before/after slider
  • SVG line drawing
  • Lottie animation

Motion principles

  • Purposeful animation
  • Anticipation
  • Follow-through
  • Squash and stretch
  • Perceived performance
  • Frequency of use
  • Spatial consistency
  • Reduced motion

Animation performance

  • Frame rate (FPS)
  • Jank
  • GPU acceleration
  • will-change
  • Layout thrashing

Layout

  • Hero section
  • Above the fold
  • Sticky header
  • Sidebar
  • Bento grid
  • Card
  • Flexbox
  • CSS Grid
  • Padding vs margin
  • Responsive design
  • Container
  • Masonry layout
  • Split screen
  • Z-index
  • Overflow

Components

  • Button variants
  • Modal
  • Drawer
  • Popover
  • Tooltip
  • Dropdown menu
  • Context menu
  • Toast notification
  • Tabs
  • Segmented control
  • Accordion
  • Carousel
  • Command palette
  • Combobox
  • Toggle switch
  • Checkbox
  • Radio button
  • Date picker
  • Breadcrumb
  • Pagination
  • Infinite scroll
  • Badge
  • Avatar stack
  • Empty state
  • Skeleton screen
  • Spinner
  • Progress bar
  • Data table
  • Stepper
  • Floating label
  • Inline validation
  • Alert banner
  • Tag input

States & patterns

  • Interaction states
  • Focus ring
  • Loading state
  • Optimistic UI
  • Debounce
  • Lazy loading
  • Dark mode
  • Micro-interaction
  • Affordance
  • Undo
  • Drag and drop
  • Keyboard shortcut

Visual styles

  • Glassmorphism
  • Liquid glass
  • Neumorphism
  • Claymorphism
  • Neo-brutalism
  • Skeuomorphism
  • Flat design
  • Mesh gradient
  • Aurora background
  • Grain texture
  • Glow effect
  • Drop shadow
  • Border radius
  • Grid background
  • Typographic hierarchy
  • Accent color
  • Color contrast

Vibe coding & AI

  • Vibe coding
  • Prompt
  • Context window
  • Token
  • AI agent
  • Tool call
  • Hallucination
  • Diff
  • Live preview
  • Checkpoint
  • Git commit
  • Deploy
  • Frontend and backend
  • API
  • Database
  • Rules file
  • MCP
  • Plan mode
  • Visual edit
Album cover

Now playing

Midnight Drive

Nova Lane

1:243:52