Image Peephole Effect: Using CSS Masking in Webflow

Level: Professional
Animation
ressourcen
Live Vorschau
* AFFILIATE LINK
Details
Level
Professional
Date
July 12, 2026
Author
Lächelnder Mann mit kurzem braunem Haar und Bart vor orangem Hintergrund.
Jonas Arleth
Blog Post

I was looking for a solution to make a circle move across an image as a peephole so that the underlying image was visible. The circle moves on mouse movement — i.e. magnetically tracks the mouse pointer.

Since you can't influence top/left position or CSS masks in Webflow Animation, a bit of custom code must be added. I used the following external code for this: https://stackoverflow.com/questions/63227926/move-clip-path-position-to-mouse-cursor

‍

Another useful article about CSS tricks about mask position helped me understand the whole thing:
‍
‍https://css-tricks.com/almanac/properties/m/mask-position

‍

The effect is similar to that of Vanmoof:
https://www.vanmoof.com/de-DE/s3?color=dark
or on https://www.canoo.com/canoo

‍


More content

Blog Archiv

I Gave Claude Code My Hardest Animation Challenge Yet

Can Claude Code build an infinite slider with a seamless FLIP overlay transition? I tested it with GSAP, Smooothy and my Figma design for a fictional artist agency.
Video
​
Skill
Beginner
Kategorie
AI

Anschauen
Beitrag anschauen

I Designed This in Figma. Can Claude Build It?

I designed a website in Figma and gave Claude only a screenshot, fonts, images and one prompt. See how close AI gets to an individual animated design.
Video
​
Skill
Beginner
Kategorie
AI

Anschauen
Beitrag anschauen

Make a Boring List Impressive with This Simple GSAP Effect

Build a simple typo scroll animation in Webflow with GSAP. Names scale in the center and animated brackets appear, powered by the CMS.
Video
​
Skill
Beginner
Kategorie
GSAP

Anschauen
Beitrag anschauen

Kreative GSAP Hero Animation mit einem 3D Card Loop-Effekt

Learn step-by-step how to animate a premium hero section in Webflow using GSAP, including scroll triggers, staggers, and loop effects.
Video
​
Skill
Intermediate
Kategorie
Animation

Anschauen
Beitrag anschauen

Webflow Text Marquee Animation with the new GSAP Timeline

Learn how to build a looping marquee in Webflow using the GSAP Timeline. No custom code needed scroll-triggered and performance-friendly.
Video
​
Skill
Beginner
Kategorie
GSAP

Anschauen
Beitrag anschauen

Turn Any Product Hero Into a Premium Showcase (No 3D)

Build a 360° rotating product hero in Webflow with AI-generated video, blend modes & container queries. Free cloneable included.
Video
​
Skill
Beginner
Kategorie
Animation

Anschauen
Beitrag anschauen