Home

Awesome

Frosted Glass npm version

❄️ Add a live frosted glass blur effect over any type of web content, including text. ️️

Build Status Codecov Dependency Status devDependency Status Built With Stencil

Demos

<a href="https://codesandbox.io/s/github/adriancarriger/frosted-glass/tree/master/demos/vanilla/navbar"> <img alt="Vanilla" src="https://raw.githubusercontent.com/adriancarriger/frosted-glass/master/images/vanilla.png" width="70px"> </a> <a href="https://codesandbox.io/s/github/adriancarriger/frosted-glass/tree/master/demos/react/navbar"> <img alt="React" src="https://raw.githubusercontent.com/adriancarriger/frosted-glass/master/images/react.png" width="100px"> </a> <a href="https://codesandbox.io/s/github/adriancarriger/frosted-glass/tree/master/demos/vue/navbar" style="margin-right: 10px"> <img alt="Vue" src="https://raw.githubusercontent.com/adriancarriger/frosted-glass/master/images/vue.jpg" width="75px"> </a> <a href="https://codesandbox.io/s/github/adriancarriger/frosted-glass/tree/master/demos/angular/navbar"> <img alt="Angular" src="https://raw.githubusercontent.com/adriancarriger/frosted-glass/master/images/angular.png" width="70px"> </a>

Navbar blur example gif

Install

npm install frosted-glass --save

Setup

<script src='node_modules/frosted-glass/dist/frostedglass.js'></script>

Usage

<frosted-glass-container>
  <h1>Welcome!</h1>
  <frosted-glass>
    <div class="nav-content">Nav content</div>
  </frosted-glass>
</frosted-glass-container>

Optional properties

frosted-glass

frosted-glass-container

Example

<frosted-glass-container stretch="true">
  <frosted-glass blur-amount="5px" overlay-color="#ffffff52"></frosted-glass>
</frosted-glass-container>

License

frosted-glass is licensed under the MIT Open Source license. For more information, see the LICENSE file in this repository.