1.0.0 • Published 3 years ago
ng-sprite v1.0.0
NgSprite
This package is an angular component and serves as a wrapper around a CSS Sprite. CSS Sprites are a means of combining multiple images into a single image file for use on a website, to help with performance.
Install
npm i -S ng-sprite
Usage
import { NgSpriteModule } from 'ng-sprite';
@NgModule({
imports: [
NgSpriteModule
]
})
<ng-sprite [image]="'assets/test.png'" [height]="250" [width]="500" [x]="0" [y]="-250"></ng-sprite>