adisreyaj / angular-shimmer-effect

A shimmer effect package for Angular Applications

Home Page:https://angular-shimmer-effect.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NG Shimmer - Content Placeholder

angular License: Apache License 2.0 Twitter: Adithya Sreyaj

Shimmer Animation for Angular Applications

Angular Remix Icon

Simple and easy to user Shimmer Animation placeholder for your Angular applications. An application should be having a good User Experience inorder to succeed. Smaller things like adding a shimmer animation to let the users know that something is being loaded is a great way to improve the application's UX.

User Ratings Card

Profile Card

Features

  • Simple and Easy to Setup
  • Ease to use
  • CSS based super light
  • Zero Dependencies
  • Customizable

How to Use the Component

Install the package using the command:

npm i @sreyaj/ng-shimmer

Import the StarRatingModule into your module

import { ShimmerModule } from '@sreyaj/ng-shimmer';
@NgModule({
  ...
  imports: [ShimmerModule],
  ...
})
export class AppModule {}

Now you can use the component inside your application

<shimmer></shimmer>

You can now customize it with the following attributes

Eg with few options:

<shimmer [width]="'100px'" [type]="'circle'"></shimmer>

Customizations

Feature Description Attribute Type Default
Type Of Shimmer You can change the appearance of the shimmer type 'line' or 'circle' or 'square' 'line
Width of the Shimmer Shimmer width can be customized according to your need width string '100%'
Height of the Shimmer Shimmer height can be customized according to your need height string '12px'
Animation Duration Shimmer animation duration can be customized according to your need duration string '1s'
Rounded Shimmer corners can be rounded of for 'line' or 'square' type rounded boolean false

Feel free to open Issues and Pull Requests

About

A shimmer effect package for Angular Applications

https://angular-shimmer-effect.vercel.app/

License:Other


Languages

Language:TypeScript 58.3%Language:SCSS 19.9%Language:JavaScript 11.7%Language:HTML 10.1%