ngx-parallax-stars
Version:
Angular library to create beautiful stars with parallax effect.
39 lines (38 loc) • 1.03 kB
TypeScript
export interface StarLayer {
/**
* Sets the color of the stars. All colors you can use in CSS should work e.g. white, #ffffff, rgb(255,255,255), hsl(0, 0%, 100%)
*/
color: string;
/**
* Specifies the size of every star in px
*/
size: number;
/**
* Specifies how many stars should be rendered per 100 by 100px area
*/
density: number;
/**
* Sets the moving speed of the stars
*/
speed: number;
/**
* Determines the moving direction. Possible values are: up, down, left, right
*/
direction: 'up' | 'down' | 'left' | 'right';
/**
* Sets the amount of blur for every star
*/
blur: number;
/**
* Sets the glow radius in px
*/
glow: number;
/**
* Set to true to make the stars round instead of square
*/
isRound: boolean;
}
/**
* Default star layers that are rendered when no layers are provided to the ngx-parallax-stars component
*/
export declare const defaultStarLayers: StarLayer[];