Press "Enter" to skip to content

A Cross-Browser Responsive, Blurred Glass Effect Using Javascript and CSS | Frosted Panel

Frosted Panel is a browser compatible library written in pure Javascript to achieve a responsive “Frosted Glass” effect.

If you’re trying to document the same effect here, but need it to work with as many browsers as possible, even if they don’t support the filter: blur (), then Frosted Panel is the library for you.

How to make use of it:

Load the primary JavaScript within the doc.

<script src="./app.js"></script>

Create the HTML and config the frosted glasses impact utilizing the next attributes:

<div class="frosted-panel" panel-dimensions="80% 60%" breakpoint-type="min-width" breakpoints="600px 80% 80%, 1200px 60% 500px">
  <svg>
    <filter id="blurMe" filterRes="1200" color-interpolation-filters="sRGB">
      <feGaussianBlur in="SourceGraphic" stdDeviation="7" />
    </filter>
    <image xlink:href="bg.jpg" x="0" y="0" width="2880" height="1620" filter="url(#blurMe)" />
  </svg>
  <div class="content" content-margin="5px">
    ALL PANEL CONTENT GOES HERE
  </div>
</div>

Set the panel margin utilizing the space-top-bot attribute:

<body space-top-bot="70px">

Responsive Cross-browser Frosted Glass Effect, Frosted Panel Plugin/Github

Changelog:

01/04/2020

  • If the breakpoint-type attribute is empty or null we should always use ‘min-width’ because of the default worth for the brType variable.

See Demo And Download

Official Website(cryptodescriptor): Click Here

This superior jQuery/javascript plugin is developed by cryptodescriptor. For extra Advanced Usages, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *