Glasses that magnify the text scrolling behind them
A pair of gold glasses sits over a marquee of text; through the lenses the words appear sharp and enlarged while outside them they're small and blurred.
By Kosta (@MotreskuKosta) · View original post
Originally built with HTML/CSS. Members can get the prompt for React, SwiftUI, React Native or HTML/CSS.
Prompt
Build a 'see clearly' glasses lens effect for a hero section in HTML/CSS + a little JS.…
Free forever. Available for React, SwiftUI, React Native and HTML/CSS.
Build it with
Motion details
- Spring
- spring-based
- Easing
- linear
- Details
- Reduced-motion fallback · Blur
Keyframes
Six frames from the clip, left to right. Agents get this sheet as a reference with the prompt.

Questions
- How do I build the glasses that magnify the text scrolling behind them in HTML/CSS?
- Copy the Kites Motion prompt for this clip (free account) and paste it into Claude Code, Cursor or Codex, or send it there in one click. The prompt describes the layout, timing and interactions, and links a keyframe sheet so your agent can match the motion. It is written for HTML/CSS and can be rewritten for React, SwiftUI, React Native.
- What are the motion details?
- Spring: spring-based. Easing: linear. Details: Reduced-motion fallback · Blur.
- Who designed this animation?
- Kosta (@MotreskuKosta) shared it on X. Kites Motion links back to the original post.
Similar animations
More text animations →
Process list that swaps the picture on hoverHover
Editorial text that reflows around moving orbsText effect
Dark infrastructure landing page with smooth scroll revealsLanding page
Moss that grows along a branch as you hoverHover
'Designed in glass' hero with shattered panes3D
Handwriting text that writes itselfText effect
ASCII jellyfish behind an AI promptText effect
Flower catalogue site with a blooming carouselLanding page