ng-sprite

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.

Usage no npm install needed!

<script type="module">
  import ngSprite from 'https://cdn.skypack.dev/ng-sprite';
</script>

README

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.

npm npm NPM

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>