惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
D
Docker
GbyAI
GbyAI
Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
G
Google Developers Blog
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
小众软件
小众软件
Engineering at Meta
Engineering at Meta
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
B
Blog
H
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Liquid Alerts: WOW Alerts Meet Liquid Border
Paweł Nosko · 2026-05-27 · via DEV Community

Paweł Nosko

Liquid Alerts merges two lab plugins: premium WOW Alerts (pure CSS) and Liquid Border (jQuery + SVG clip-path). You get rich backgrounds, hover shine, drifting glow — plus a living, organic edge that ripples like liquid.

This post covers where to download the pieces, how to wire them together, and how to tune the waves.

Live demo: https://pawelnosko.com/demos/liquid_alerts/

Watch the Liquid Alerts demo video


1. Where to get the components

Liquid Alerts does not replace the original plugins — it combines them. You need both packages. Grab them from the lab repos or, if you are reading this on my blog, from the links below.

WOW Alerts (CSS)

Success / error / warning / info / neutral banners, light and dark themes, enter animations, hover shine, dismiss button.

WOW Alerts preview — five variants in light and dark themes
WOW Alerts — five variants, light and dark.

Files in the WOW Alerts package:

  • css/wow-alerts.css — alert styles
  • index.html — demo without Liquid Border (optional reference)

Liquid Border (jQuery)

Applies an animated SVG clip-path to a block or image. Waves can be organic (random height pulsing), and side edges can stay straight (horizontalOnly).

Liquid Border preview — wavy edge on blocks and images
Liquid Border — wavy edge on blocks and images.

Files in the Liquid Border package:

  • js/jquery.liquidBorder.js — plugin
  • css/liquid-border.css — wrapper and SVG layers
  • index.html — demo with sliders (optional)

Ready-made merge: Liquid Alerts

In the Liquid Alerts folder both kits are already merged. File layout:

liquid_alerts/
├── index.html
├── css/
│   ├── wow-alerts.css
│   ├── liquid-border.css
│   └── liquid-alerts-integration.css
└── js/
    └── jquery.liquidBorder.js

Enter fullscreen mode Exit fullscreen mode


2. Requirements

  • jQuery 3.x (CDN is fine)
  • A browser with clip-path and ResizeObserver
  • Modern CSS (color-mix() in WOW Alerts)

3. Include the assets

<link rel="stylesheet" href="css/wow-alerts.css">
<link rel="stylesheet" href="css/liquid-border.css">
<link rel="stylesheet" href="css/liquid-alerts-integration.css">

<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="js/jquery.liquidBorder.js"></script>

Enter fullscreen mode Exit fullscreen mode


4. HTML markup

Structure comes straight from WOW Alerts. A theme wrapper holds the stack; each alert is icon + body + optional close.

<div class="wow-alerts wow-theme-dark">
  <div class="wow-alert wow-alert--success" role="alert">
    <div class="wow-alert__icon" aria-hidden="true">
      <svg viewBox="0 0 24 24"><path d="M20 6L9 17l-5-5"/></svg>
    </div>
    <div class="wow-alert__body">
      <span class="wow-alert__title">Success</span>
      <p class="wow-alert__message">Payment received.</p>
    </div>
    <button type="button" class="wow-alert__close" aria-label="Dismiss alert">×</button>
  </div>
</div>

Enter fullscreen mode Exit fullscreen mode

Classes worth knowing:

  • wow-theme-light / wow-theme-dark — theme on the container
  • wow-alert--success, --error, --warning, --info, --neutral
  • wow-alert--compact — smaller variant

5. Initialize Liquid Border on alerts

Call .liquidBorder() on each .wow-alert after the markup is in the DOM (e.g. after cloning from <template>).

$('.wow-alert').liquidBorder({
  amplitude: 6,
  frequency: 4,
  speed: 0.45,
  organic: true,
  organicIntensity: 0.85,
  organicSpeed: 2.2,
  contentPadding: 10,
  horizontalOnly: true,
  borderWidth: 0
});

Enter fullscreen mode Exit fullscreen mode

Why these values?

  • amplitude: 6 — alerts are horizontal; a smaller amplitude looks clean, not like a floating blob.
  • horizontalOnly: true — waves on top and bottom only; straight sides fit banner layout.
  • contentPadding: 10 — extra inner space beyond wave clearance (2× amplitude + padding).
  • borderWidth: 0 — clip only; the CSS alert border still shows inside the clip.

6. CSS integration (liquid-alerts-integration.css)

Do not edit wow-alerts.css, liquid-border.css, or jquery.liquidBorder.js. Put layout fixes in css/liquid-alerts-integration.css, loaded after the libraries.

Liquid Border wraps each alert in .liquid-border-wrapper and applies negative margins on .wow-alert (wave padding compensation). The default WOW Alerts gap is not enough — alerts overlap visually. The bridge file clears stack gap and adds margin-bottom on wrappers via --la-stack-gap.

It also restores display: grid on .liquid-border-target (Liquid Border sets display: block, which breaks the icon | message | close row).

function stackGapPx(settings) {
  const maxAmp = settings.amplitude * (1 + settings.organicIntensity);
  const totalPad = maxAmp * 2 + (settings.contentPadding || 0);
  return Math.ceil(totalPad + 20);
}

document.querySelectorAll('.wow-alerts').forEach((stack) => {
  stack.style.setProperty('--la-stack-gap', stackGapPx(settings) + 'px');
});

Enter fullscreen mode Exit fullscreen mode

Recompute this when amplitude or contentPadding changes, together with liquidBorder('update').


7. Dismissing an alert

Pause the wave animation, run the CSS dismiss animation, then destroy the plugin instance:

document.querySelectorAll('.wow-alert__close').forEach((btn) => {
  btn.addEventListener('click', () => {
    const alert = btn.closest('.wow-alert');
    const $alert = $(alert);
    $alert.liquidBorder('pause');
    alert.classList.add('is-dismissing');
    alert.addEventListener('animationend', () => {
      $alert.liquidBorder('destroy');
      alert.remove();
    }, { once: true });
  });
});

Enter fullscreen mode Exit fullscreen mode


8. Liquid Border API (quick reference)

$('.wow-alert').liquidBorder('update', { amplitude: 8 });
$('.wow-alert').liquidBorder('pause');
$('.wow-alert').liquidBorder('play');
$('.wow-alert').liquidBorder('destroy');

Enter fullscreen mode Exit fullscreen mode

On the live demo, sliders call update on all alerts at once — handy for finding settings you like.


9. Tuning and common issues

Problem Fix
Alerts overlap Add liquid-alerts-integration.css and set --la-stack-gap (section 6).
Alert too narrow In integration CSS: .liquid-border-wrapper { width: 100% }.
Content hugs the waves Increase contentPadding (e.g. 12–16).
Waves overpower content Lower amplitude or organicIntensity.
Too much motion on mobile horizontalOnly: true, lower speed, or pause when prefers-reduced-motion.
Empty wrapper after close Call destroy before remove (section 7).
Layout stacks vertically (icon / text / close) display: grid on .liquid-border-target in integration CSS.
Close button flush to the right edge Small margin-right on .wow-alert__close in integration CSS.

10. Summary

  1. Download WOW Alerts and Liquid Border (links in section 1).
  2. Link both stylesheets, liquid-alerts-integration.css, jQuery, and jquery.liquidBorder.js.
  3. Paste WOW Alerts markup with the right theme and variant.
  4. Run .liquidBorder() on each .wow-alert with horizontalOnly and contentPadding.
  5. Set --la-stack-gap after init (integration CSS + JS).

Liquid edge plus WOW interior (gradient fill, shine, drifting orb) feels more kinetic than CSS alone — without giving up simple markup and accessibility (role="alert", button labels).


Try it: Liquid Alerts demo