Liquid Distortion
Distorsione liquida · Distorsión líquida · Displacement hover · Effetto acqua · Ripple shader · Liquid hover
On hover an image or headline ripples and wobbles as if reflected in water, then snaps back into focus. The effect shifts pixels along a noise or wave map, using an SVG filter or a WebGL shader.
- Era
- 2017 – today
- Use
- Mainstream
Live demo
View code
<svg width="0" height="0" style="position:absolute"><filter id="liq" x="-10%" y="-10%" width="120%" height="120%"><feTurbulence id="tb" type="fractalNoise" baseFrequency="0.012 0.03" numOctaves="2" seed="3"/><feDisplacementMap id="dm" in="SourceGraphic" scale="0" xChannelSelector="R" yChannelSelector="G"/></filter></svg>
<main>
<figure class="img"><div class="sun"></div><div class="sea"></div><h1>Marea</h1></figure>
<p>passa sopra l'immagine</p>
</main>
<script>
if(matchMedia('(prefers-reduced-motion: no-preference)').matches){
const dm=document.getElementById('dm'),tb=document.getElementById('tb'),f=document.querySelector('.img');
let target=0,v=0,t=0,hover=false;f.onpointerenter=()=>hover=true;f.onpointerleave=()=>hover=false;
(function loop(){t+=.016;target=hover?38:(Math.sin(t*1.4)>.2?34:0);v+=(target-v)*.06;
dm.setAttribute('scale',v.toFixed(1));tb.setAttribute('baseFrequency',(0.012+Math.sin(t)*.004).toFixed(4)+' '+(0.03+Math.cos(t*.8)*.01).toFixed(4));
requestAnimationFrame(loop)})();
}
</script> body{margin:0;height:100vh;display:grid;place-items:center;overflow:hidden;background:#0A0F1C;color:#E9F1FF;font-family:'Space Grotesk',sans-serif}
main{text-align:center}
.img{position:relative;margin:0 auto;width:min(360px,92vw);height:220px;border-radius:14px;overflow:hidden;filter:url(#liq);background:linear-gradient(180deg,#FF6FB5 0%,#ffb38a 38%,#3D7BFF 60%,#0A2A6B 100%)}
.sun{position:absolute;left:50%;top:44px;width:86px;height:86px;margin-left:-43px;border-radius:50%;background:radial-gradient(circle,#fff6d6,#ffd27a)}
.sea{position:absolute;left:0;right:0;bottom:0;height:42%;background:repeating-linear-gradient(180deg,#00D1C1 0 3px,#1f5bd6 3px 11px);opacity:.75}
h1{position:absolute;left:0;right:0;bottom:22px;margin:0;font:italic 700 54px/1 'Bodoni Moda',serif;color:#E9F1FF;text-shadow:0 2px 18px #0A0F1C80}
p{margin:14px 0 0;font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#8aa0c8} Characteristics
- Displacement map from noise or a texture
- Intensity ramps on hover then fades
- Liquid wave transitions between images
- Melting edges and bleeding colours
- Typical of portfolios and fashion sites
Palette
Click a swatch to copy it
Typography
Headings · Bodoni Moda Liquid Distortion
Body · Space Grotesk On hover an image or headline ripples and wobbles as if reflected in water, then snaps back into focus. The effect shifts pixels along a noise or wave map, using an SVG filter or a WebGL shader.
Motion
- Easing
ease-out per l'attacco, decadimento esponenziale in rilascio- Typical duration
- 600–1200 ms per hover; transizioni tra immagini 1–1.5 s
- Techniques
- SVG feTurbulence + feDisplacementMap, shader WebGL con displacement map, three.js / OGL / curtains.js, hover-effect di Robin Delaporte, PixiJS DisplacementFilter
Accessibility (reduced motion)
Replace the distortion with a plain opacity or image swap, with no rippling.
Prompt for your agent
Copy and paste into your prompt to have an agent or image generator reproduce this style.
For web pages and UI
Design the web page or interface in this style: Liquid Distortion (Distorsione liquida, Distorsión líquida). On hover an image or headline ripples and wobbles as if reflected in water, then snaps back into focus. The effect shifts pixels along a noise or wave map, using an SVG filter or a WebGL shader. Characteristics: Displacement map from noise or a texture, Intensity ramps on hover then fades, Liquid wave transitions between images, Melting edges and bleeding colours, Typical of portfolios and fashion sites. Palette: #0A0F1C, #E9F1FF, #3D7BFF, #00D1C1, #FF6FB5. Typography: headings in Bodoni Moda, body text in Space Grotesk (Google Fonts or equivalents). Mood: dreamy, immersive, elegant. Motion: easing ease-out per l'attacco, decadimento esponenziale in rilascio, typical duration 600–1200 ms per hover; transizioni tra immagini 1–1.5 s; techniques: SVG feTurbulence + feDisplacementMap, shader WebGL con displacement map, three.js / OGL / curtains.js, hover-effect di Robin Delaporte, PixiJS DisplacementFilter. With prefers-reduced-motion: Replace the distortion with a plain opacity or image swap, with no rippling. References: hover-effect di Robin Delaporte, Codrops «Liquid Distortion Effects», curtains.js, MDN «feDisplacementMap».
Relations
References
- hover-effect di Robin Delaporte
- Codrops «Liquid Distortion Effects»
- curtains.js
- MDN «feDisplacementMap»