angular-glass
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

AngularGlass

This project was generated with Angular CLI version 12.0.3.

Usage guide

Install Package

    npm install angular-glass

Import module from package into your app module

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppComponent } from './app.component';

import { GlassModule } from "angular-glass";

@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
    GlassModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Use directive inside component html

<div class="parent">
  <div class="container" asGlass [outlineWidth]=4>
    <p>This is a Test for glassMorphism module angular-glass</p>
  </div>
</div>

Properties you can bind to after adding the asGlass directive to any html element

Property Default Value Permitted Values
blur 4 any integer from 0-20
opacity 0.25 0-1
borderRadius 10 any positive number
showOutline true boolean
outlineWidth 1 any positive number
r 255 any number between 0-255
g 255 any number between 0-255
b 255 any number between 0-255

Sample Images

Tinted Abstract background Abstract Shape Login Screen

Package Sidebar

Install

npm i angular-glass

Weekly Downloads

6

Version

1.0.1

License

MIT

Unpacked Size

32.5 kB

Total Files

14

Last publish

Collaborators

  • freakycodes