# Escotilha

A glass panel that bends whatever passes behind it, with refracting edges that split the colors.

> Escotilha is a THM Componentes component that turns a card or a bar into liquid glass, in the style Apple made popular: content passing behind it bends at the edges and picks up color fringes. Built with SVG filters and CSS, without WebGL, it works well for sticky bars, menus and cards over images.

- Category: Special effects
- Origin: Adapted from open source under the MIT license, with a ready THM prompt
- Load weight: Medium: canvas or continuous animation; fine for one section
- Technology: Vue 3, TypeScript, Tailwind CSS v4
- Interaction: None: the effect runs on its own
- URL: https://vibecode.thmtecnologia.com/en/components/escotilha/

## What it looks like

Think of a thick block of glass resting on the page. In the center, whatever sits behind it looks almost sharp; near the rounded edges, the image bends like a lens and splits into red, green and blue fringes. A very light frosted tint and a subtle inner outline shape the piece and follow light or dark mode. The component does not animate on its own: the motion comes from content scrolling underneath. By default the panel is fixed on screen, and the text or buttons you place inside sit on top of the glass.

## You may be looking for this if you asked for something like

- “that new iPhone glass look for my site's top bar”
- “a transparent card that warps the background at its edges, Apple style”
- “a sticky menu that looks like real glass, not just blur”
- “make my navbar look like thick glass that bends what is behind it”
- “a glass panel that refracts the image passing behind it”
- “a nicer glassmorphism effect for my landing page cards”

## Also known as

refracting glass panel, glassmorphism, glass lens effect, CSS refraction, SVG displacement filter, frosted glass panel

## When to use

- A sticky navigation or action bar over photos or colorful content
- Feature cards on landing pages with image-rich backgrounds
- Floating buttons, players and controls that sit over the content
- Interfaces that want to follow Apple's recent visual language

## When to avoid

- Flat single-color backgrounds, where the refraction barely shows
- Body text scrolling behind the panel, which gets hard to read at the edges

## How to ask your AI

```text
Create a refracting glass panel with an SVG displacement filter for my sticky navigation bar: edges that refract the content behind with a slight color split, a frosted tint in my theme colors and a plain blurred fallback for browsers that do not apply the filter.
```

With THM Componentes, you paste the full prompt from the catalog together with this component's code, and the AI reproduces this exact effect instead of improvising.

## Questions about Escotilha

### Does Escotilha work in every browser?

Escotilha applies its SVG filter through backdrop-filter, and support for SVG filters in that property varies between browsers. Test it in Safari and Firefox and prepare a plain blur fallback. The THM Componentes prompt also asks your AI to wrap the component in ClientOnly in Nuxt, with a static version.

### Will Escotilha slow down my site?

Escotilha runs no animation and no WebGL: the distortion map is an SVG generated once and rebuilt only when the panel changes size. The cost is the filter applied over the backdrop as the page scrolls, which is why it is rated Medium in THM Componentes. Use it on a few pieces per screen and test on phones.

### Can I tune the glass intensity in Escotilha?

Yes. Escotilha has props for corner radius, the width of the refracting edge, distortion scale, the offset of each color channel, blur and the strength of the frosted tint. A scale closer to zero makes the glass subtler; a larger one bends the background more.

## Related components

- [Miragem](https://vibecode.thmtecnologia.com/en/components/miragem/): A rounded slab of glass glides over the photo and bends the image at its edges, like a real lens.
- [Remanso](https://vibecode.thmtecnologia.com/en/components/remanso/): Your page content looks like it sits under a thin layer of water and ripples wherever the mouse goes.
- [Geada](https://vibecode.thmtecnologia.com/en/components/geada/): The image or content gets blurrier bit by bit toward the edge, like glass that grows more frosted.
- [Gude](https://vibecode.thmtecnologia.com/en/components/gude/): A glass ball with an indigo and cyan ink swirl inside, slowly turning over a light floor.
- [Passarela](https://vibecode.thmtecnologia.com/en/components/passarela/): A translucent icon bar where each icon grows as the mouse gets closer, like on a Mac.

---
THM Componentes: THM Componentes is a catalog of 268 UI components for Vue 3 and Nuxt, 115 of them exclusive, each with a live demo and a ready prompt for Claude Code, Cursor and other AI assistants. Pick the effect, copy the prompt and your AI applies it to your project. Lifetime access for R$ 497 (about US$ 99).
