news.volyx.in

Frosted glass from games to the web (tyleo.com)

791 points by tyleo · 621 days ago · 192 comments on HN

Article summary

The article discusses how to create a frosted glass effect using HTML and CSS, inspired by the author's experience as a UI developer for games. The effect is achieved using a combination of backdrop-filter, box-shadow, and background-image properties. The author provides examples and code snippets to demonstrate the technique. The article also explores variations of the effect, including dynamic light and subsurface scattering.

Main themes

  • Frosted glass effect
  • HTML and CSS techniques
  • Game development
  • UI design
  • Web development
  • Graphics and rendering

What commenters say

  • The frosted glass effect can be useful in certain contexts, such as game development, but may not be suitable for all applications due to usability concerns.
  • The effect can be achieved using a combination of CSS properties, including backdrop-filter and box-shadow, but may require additional techniques for dynamic lighting and subsurface scattering.
  • Some commenters argue that the effect is not suitable for production use due to performance and battery life concerns, while others see potential for creative applications.
  • The use of web technologies, such as HTML and CSS, in game development is a growing trend, with various libraries and frameworks available to support this approach.
  • The frosted glass effect can be improved by adjusting the intensity and saturation of the background image, and by using more advanced techniques such as clipping and masking.
  • Some commenters disagree about the suitability of the effect for different platforms, such as mobile devices, and argue that alternative approaches may be more effective in certain contexts.