Gathering detailed insights and metrics for @netbasal/ngx-content-loader
Gathering detailed insights and metrics for @netbasal/ngx-content-loader
Gathering detailed insights and metrics for @netbasal/ngx-content-loader
Gathering detailed insights and metrics for @netbasal/ngx-content-loader
⚪️ SVG component to create placeholder loading, like Facebook cards loading.
npm install @netbasal/ngx-content-loader
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
735 Stars
110 Commits
58 Forks
17 Watching
18 Branches
17 Contributors
Updated on 12 Jul 2024
TypeScript (72.49%)
HTML (13.89%)
JavaScript (13.17%)
CSS (0.45%)
Cumulative downloads
Total Downloads
Last day
-23.8%
125
Compared to previous day
Last week
-1.1%
777
Compared to previous week
Last month
6.4%
3,237
Compared to previous month
Last year
-45.5%
50,470
Compared to previous year
1
Angular component that uses SVG to create a collection of loaders which simulates the structure of the content that will be loaded, similar to Facebook cards loaders.
Sponsorships aid in the continued development and maintenance of ngneat libraries. Consider asking your company to sponsor ngneat as its core to their business and application development.
Elevate your support by becoming a Gold Sponsor and have your logo prominently featured on our README in the top 5 repositories.
Boost your backing by becoming a Gold Sponsor and enjoy the spotlight with your logo prominently showcased in the top 3 repositories on our README.
Become a bronze sponsor and get your logo on our README on GitHub.
This is an Angular port for react-content-loader.
1yarn add @ngneat/content-loader
1import { ContentLoaderModule } from '@ngneat/content-loader'; 2 3@NgModule({ 4 imports: [ContentLoaderModule] 5}) 6export class AppModule {}
1<content-loader> 2 <svg:rect x="0" y="0" rx="3" ry="3" width="250" height="10" /> 3 <svg:rect x="20" y="20" rx="3" ry="3" width="220" height="10" /> 4 <svg:rect x="20" y="40" rx="3" ry="3" width="170" height="10" /> 5 <svg:rect x="0" y="60" rx="3" ry="3" width="250" height="10" /> 6 <svg:rect x="20" y="80" rx="3" ry="3" width="200" height="10" /> 7 <svg:rect x="20" y="100" rx="3" ry="3" width="80" height="10" /> 8</content-loader>
Warning: Safari renders the SVG in black in case your Angular application uses the
<base href="/" />
tag in the<head/>
of yourindex.html
. Refer to the input propertybaseUrl
below to fix this issue.
1<facebook-content-loader></facebook-content-loader>
1<list-content-loader></list-content-loader>
1<bullet-list-content-loader></bullet-list-content-loader>
Prop name and type | Environment | Description |
---|---|---|
animate?: boolean Defaults to true | - | Opt-out of animations with false |
baseUrl?: string Defaults to an empty string | - | Required if you're using <base url="/" /> document <head/> . This prop is common used as: <ContentLoader baseUrl={window.location.pathname} /> which will fill the SVG attribute with the relative path. Related #93. |
speed?: number Defaults to 1.2 | - | Animation speed in seconds. |
interval?: number Defaults to 0.25 | - | Interval of time between runs of the animation, as a fraction of the animation speed. |
viewBox?: string Defaults to undefined | - | Use viewBox props to set a custom viewBox value, for more information about how to use it, read the article How to Scale SVG. |
gradientRatio?: number Defaults to 1.2 | - | Width of the animated gradient as a fraction of the view box width. |
rtl?: boolean Defaults to false | - | Content right-to-left. |
backgroundColor?: string Defaults to #f5f6f7 | - | Used as background of animation. |
foregroundColor?: string Defaults to #eee | - | Used as the foreground of animation. |
backgroundOpacity?: number Defaults to 1 | - | Background opacity (0 = transparent, 1 = opaque) used to solve an issue in Safari |
foregroundOpacity?: number Defaults to 1 | - | Animation opacity (0 = transparent, 1 = opaque) used to solve an issue in Safari |
style?: CSSProperties Defaults to {} | - |
This is basically an Angular port for react-content-loader.
MIT © NetanelBasal
Thanks goes to these wonderful people (emoji key):
Netanel Basal 💻 🖋 📖 | Heo 💻 | Andreas Aeschlimann 📖 | alexw10 💻 📖 | Chinonso Chukwuogor 💻 | wynfred 💻 | Rustam 💻 |
Alex Malkevich 📖 | Daniel Sogl 💻 🚧 📦 | Alex Szabó 💻 | Roy 📖 | Robin Van den Broeck 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
No vulnerabilities found.
No security vulnerabilities found.