Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wadie/ngx-icon-blur

An Angular component that can be used to create frosted glass effect of icons.
https://github.com/wadie/ngx-icon-blur

angular blur icons imageblur

Last synced: 24 days ago
JSON representation

An Angular component that can be used to create frosted glass effect of icons.

Awesome Lists containing this project

README

        

# ngx-icon-blur [![npm version](http://img.shields.io/npm/v/ngx-icon-blur.svg)](https://npmjs.org/package/ngx-icon-blur) [![StackBlitz](https://img.shields.io/badge/stackblitz-online-orange.svg)](https://stackblitz.com/edit/ngx-icon-blur)

> An Angular component that can be used to create frosted glass effect of icons.

![preview](https://imgur.com/a0P7xon.gif)
## Available options

Option | Description
:---:|---
src | A string that represents the src location of your icon
type | "ROUNDED" or "SQUARE" or "CIRCLE
size | A number that represents the size of the icon
padding | A number that represents the padding of the icon
name | A string that represents the alt name of your icon

## Install

```bash
$ npm install ngx-icon-blur --save
```

## Usage

From your Angular `AppModule`:

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

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

// Import the library
import { NgxIconBlurModule } from 'ngx-icon-blur';

@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxIconBlurModule // <-- Add this line
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
```

Once the library is imported, you can use its component in your Angular application:

```xml


{{title}}

```

[StackBlitz Demo](https://stackblitz.com/edit/ngx-icon-blur)

## Related
inspired by [react-icon-blur](https://github.com/JP1016/react-icon-blur)

## License

MIT © [Wadie](https://github.com/wadie)