How to Add the Apple Liquid Glass Effect to Divi Using LiquidGL (Even If You Probably Shouldn’t)

Apple’s UI team clearly got bored of subtlety and decided to blur everything into a fashionable mess. Naturally, someone had to recreate it in Divi. And by someone, I mean us. This tutorial shows you how to slap LiquidGL onto your Divi sections to get that juicy, refraction-based blur seen in iOS/macOS 26. Should you? Absolutely maybe not. But if you must, here’s how.

Demo:

Apple Liquid Glass in Divi Demo

What Is the Liquid Glass Effect (and Why You Should Be Afraid)

The new visual trend in Apple’s UI is a sort of animated glass panel that refracts the background like a fancy bathroom window. It looks cool. It also hides important buttons, murders contrast, and makes legibility optional. But hey, it’s shiny.

Used sparingly (hover cards, hero sections), it can add a little magic. Used excessively, it turns your UX into a horror movie. Consider this your official warning.

Download the free Divi layout here

Tools You’ll Need

  • Divi (of course)
  • LiquidGL by NaughtyDuk
  • GSAP + ScrollTrigger (for fancy animations)
  • HTML2Canvas (mandatory for LiquidGL to work)
  • A questionable sense of UI judgment

Setting Up LiquidGL in Divi

1. Add JavaScript via Theme Options

Go to Divi > Theme Options > Integration and paste your LiquidGL setup script in the <head> or <body> section.

You’ll need to enqueue:

  • GSAP core
  • ScrollTrigger plugin
  • HTML2Canvas
  • The LiquidGL library itself

Make sure your classes match what you use in Divi. The target selector should match the element you want to apply the distortion to. You also need to take not of the querySelector classes as you will need these when we jump in the Divi Builder, mine are .fixed-glass-container and .glass-target.

If you want to tweak the effect a bit and make peoples heads explode, head over to the LiquidGL demo site and play around with the various settings to find your flavor of torture.

2. Add the Correct CSS for Positioning

Now you need to go jump into the page or post you want the glass effect on and add a swanky code module for the CSS below. Don’t forget, it has to go in between style tags.

Apply fixed-glass-container to the parent section and glass-target to the row or module inside it.

PRO TIP: Watch out for Divi’s z-index wars. When in doubt, go nuclear (z-index: 9999).

3. Targeting the Right DOM Elements

LiquidGL takes a screenshot of the DOM and uses it as a texture map. By default, it targets body as the source and distorts whatever you set as the target.

Fixed Glass Targets in Divi

In Divi, you’ll often want to:

  • Use the outer section as the snapshot background
  • Target a row/module with the glass effect

You’ll need to experiment. Sometimes, targeting a section works. Other times, LiquidGL refuses to behave until you bribe it with a console log.

4. Debugging When It All Breaks

  • Check your browser console for LiquidGL logs
  • Make sure HTML2Canvas is loaded before LiquidGL runs
  • Try refreshing the page (seriously, this helped more than once)
  • If LiquidGL refuses to render, try an SVG fallback
PRO TIP: Use a semi-transparent dark background behind your glass section to help maintain legibility—even if the rest of your page goes bananas.

Should You Use This in Production?

  • Pros: Looks slick. Clients will love it. Makes your site look expensive.
  • Cons: Performance hits. Poor browser support. Contrast crimes. Layout gremlins.

Stick to hover states or short hero sections. Avoid full-page usage unless your goal is “confuse and amuse.”

Want Simpler? Try This Instead

If you’d rather not invite chaos into your layout, we’ve got a CSS + SVG version of this tutorial that doesn’t rely on JavaScript or a WebGL context.

It’s easier, lighter (not really), and slightly less unpredictable.

Final Thoughts

Like any good effect, use LiquidGL responsibly. When used right, it adds just enough visual flair to get your client’s attention without melting their users’ retinas. Try it. Break it. Rebuild it. Then show us what you made!

Want to combine this with more interactivity? Try Divi Ajax Filter for live filtering behind your glass section, or Divi Machine to power a fully dynamic layout underneath your frosty UI.

Got questions? Drop them in the comments or tag us with your blurry experiments. We’d love to see how wrong this can go!

Tell Us What You Think!

0 Comments

Submit a Comment

Explore more from Divi Engine

Divi Form Builder

Divi Form Builder

From simple contact forms to complex frontend post or product creation, Divi Form Builder has you covered.

Divi Form Builder
Find out more
Divi Machine

Divi Machine

Build complex websites that displays dynamic fields you can filter, search and so much more with the Divi Builder.      

Divi Machine
Find out more
Divi BodyCommerce

Divi BodyCommerce

A versatile toolkit for developers using Divi and WooCommerce together, designed to boost your e-commerce site and achieve greater conversion rates.    

Divi BodyCommerce
Find out more
Divi Handoff

Divi Handoff

Let clients update content without touching the Divi Builder. Design layouts once, connect them to Flexible Content fields, and give editors simple forms for text, images, and sections.

Divi Handoff
Find out more
Divi Loop Extender

Divi Loop Extender

Unlock the Full Power of Divi 5 Loop Builder Add advanced sorting, filtering, and relationship logic right inside the Visual Builder.

Divi Loop Extender
Find out more
Divi Membership

Divi Membership

Monetize your Divi websites by transforming them into membership sites with seamless subscription management, user-friendly interfaces, and customizable membership tiers.

Divi Membership
Find out more
Divi Machine Accounts

Divi Machine Accounts

Build an account area for your customers to edit their details, access wishlist, submitted posts and more. *Note: Requires Divi Machine installed and active

Divi Machine Accounts
Find out more
Divi Ajax Filter

Divi Ajax Filter

Filter WooCommerce, Posts & Custom Posts without reloading the page.    

Divi Ajax Filter
Find out more
Divi Mobile

Divi Mobile

Divi Mobile helps you create beautiful looking mobile menus without having to code.

Divi Mobile
Find out more
Divi Nitro

Divi Nitro

Give your Divi website that extra boost of speed with our Divi Nitro plugin to enhance your customer's experience.

Divi Nitro
Find out more
Divi Protect

Divi Protect

Password protect the content of your Divi website with our Divi Protect plugin. Keep unwanted eyes out!

Divi Protect
Find out more
Divi Mega Menu

Divi Mega Menu

Create stunning, responsive, and content-rich mega menus using the Divi Builder you already know. No coding required.  

Divi Mega Menu
Find out more