Linux 软件免费装
Banner图

Glass Act – Backdrop Filters for Blocks

开发者 jobthomas
更新时间 2026年10月29日 19:45
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

background block editor blur glassmorphism backdrop-filter

下载

1.0.0

详情介绍:

Select a block that sits on top of something, such as a cover image, a photo or scrolling content. Pick a Backdrop filter just below its background color setting and set the amount. Whatever is behind the block gets filtered, giving frosted glass, dimmed, black-and-white or tinted looks. The block doesn't need a background color of its own. Leave it empty to see the filter on its own, or add a semi-transparent color to tint it. Filters: Blur, Brightness, Contrast, Grayscale, Hue, Invert, Saturation and Sepia. Blocks that already support backdrop filters natively are left alone. Theme presets referenced as var:preset|backdrop-filter|{slug} are rendered too. Source code and issues: github.com/jobthomas/glass-act. The editor script in build/ is minified; its unminified source is in src/ in that repository, built with @wordpress/scripts (npm install && npm run build).

安装:

  1. Install from Plugins → Add New, or upload the plugin folder to /wp-content/plugins/.
  2. Activate it.
  3. Select a block that sits on top of an image or other content, then choose a Backdrop filter and amount just below its background color setting.

屏幕截图:

  • Blur, `blur(50px)`.
  • Brightness, `brightness(200%)`.
  • Contrast, `contrast(200%)`.
  • Grayscale, `grayscale(100%)`.
  • Hue, `hue-rotate(180deg)`. Halfway round the color wheel; a full 360deg turn looks the same as none.
  • Invert, `invert(100%)`.
  • Saturation, `saturate(300%)`.
  • Sepia, `sepia(100%)`.

常见问题:

I picked a filter but nothing changes

A backdrop filter changes what is visible behind the block, so something has to sit behind it, such as a cover image or a photo. A fully opaque background color also hides the effect: leave the background empty or make it semi-transparent.

Does it work in every browser?

It uses the CSS backdrop-filter property, which current versions of Chrome, Edge, Firefox and Safari support. Browsers without support show the block without the filter.

Can filters be heavy on performance?

Large blur values on big areas can cost rendering time on low-powered devices. Blur values up to about 20px are usually plenty.

更新日志:

1.0.0