<blur-view>
Blurs whatever is behind it, like CSS backdrop-filter: blur(), which Lynx doesn't support. On iOS 26 and on web it also draws Apple's Liquid Glass material. To blur an element's own content instead, use the filter: blur() style.
Usage
Import LYNX_ELEMENTS in your component (see Elements).
Attributes
Plus the common attributes, such as id, class and style.
"iOS app builds" means the app ng build --platform ios builds. Lynx's own <blur-view>, in Lynx Explorer and other apps, doesn't have blur-material or glass-effect-id.
Materials
'light','extra-light'and'dark'set how bright the blur is.'glass'draws Liquid Glass, on iOS 26 and later.'glass-container'merges the glass<blur-view>elements inside it.
UIKit materials
blur-material picks one of UIKit's adaptive materials: systemThinMaterial and so on, and the bars' systemChromeMaterial.
- They follow
ios-user-interface-style. - While it's set, it replaces
blur-effectandblur-radius. - Set a
blur-effecttoo. Lynx's own<blur-view>doesn't haveblur-material. Lynx Explorer and other apps ignore it and draw theblur-effect.
Glass effect IDs
glass-effect-id pairs two glass shapes across a change, as SwiftUI's glassEffectID does.
- When one shape with an id is removed or hidden, and one with the same id is added or shown in the same update, the second takes over from the first.
- In the same
'glass-container', it morphs out of the first. - Lynx's own
<blur-view>ignores it, so the second appears at once.
Capture target
On Android, android-capture-target names the view whose pixels get blurred.
- That view needs
flatten="false". - AngularLynx points it at the page, so that a
<blur-view>inside another one still works. ''restores Android's own choice.
Events
None, apart from the common events, such as bindtap.
Platform support
- iOS glass animates. In the app
ng build --platform iosbuilds, glass in a'glass-container'materializes when it's added or shown. It dissolves when it's removed or hidden, and eases between effects, as UIKit animates its own. Lynx's own<blur-view>sets it at once. - Android's tint can be replaced. A
background-colororbox-shadowyou set replaces the tint. - Web glass refracts the nearest ancestor that draws a background. Without WebGL, glass falls back to a plain blur.
For glass that picks the right material on each platform and follows the user's accessibility settings, use the Glass UI component.
Related
- CSS on Lynx:
filter,opacityand the other visual effects - Main-thread scripts: drag a glass shape on the same frame as the finger
