{"id":23170158,"url":"https://github.com/gbuomprisco/ngx-content-loading","last_synced_at":"2026-03-08T06:33:16.485Z","repository":{"id":27946247,"uuid":"115634064","full_name":"Gbuomprisco/ngx-content-loading","owner":"Gbuomprisco","description":"Angular component to create SVG loading placeholders","archived":false,"fork":false,"pushed_at":"2023-01-03T20:36:55.000Z","size":2923,"stargazers_count":127,"open_issues_count":24,"forks_count":21,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-02T12:09:38.262Z","etag":null,"topics":["angular-component","awesome-angular","content-loader","placeholder-image"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gbuomprisco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-28T15:05:46.000Z","updated_at":"2023-11-19T11:32:53.000Z","dependencies_parsed_at":"2022-07-27T11:32:35.930Z","dependency_job_id":null,"html_url":"https://github.com/Gbuomprisco/ngx-content-loading","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gbuomprisco%2Fngx-content-loading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gbuomprisco%2Fngx-content-loading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gbuomprisco%2Fngx-content-loading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gbuomprisco%2Fngx-content-loading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gbuomprisco","download_url":"https://codeload.github.com/Gbuomprisco/ngx-content-loading/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045233,"owners_count":21038553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular-component","awesome-angular","content-loader","placeholder-image"],"created_at":"2024-12-18T03:26:01.371Z","updated_at":"2026-03-08T06:33:16.428Z","avatar_url":"https://github.com/Gbuomprisco.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngx-content-loading v0.1.4\n\nAngular component to create SVG loading placeholders. Inspired by the awesome [React Content Loader](https://github.com/danilowoz/react-content-loader).\n\n## [Demo](https://ngx-content-loading.stackblitz.io/)\n\nHave a look at a demo app on [Stackblitz](https://ngx-content-loading.stackblitz.io/)\n\n\n## Install\n\n\n    npm i --save ngx-content-loading\n\n\n## Usage\n\n### Import the module in your app module\n\n```javascript\nimport { NgxContentLoadingModule } from 'ngx-content-loading';\n\n@NgModule({\n    imports: [ NgxContentLoadingModule ]\n})\nexport class AppModule {}\n\n```\n\n### Presets\n\n#### Use presets\n\n```html\n\u003cngx-content-loading [width]=\"800\"\u003e\n    \u003csvg:g ngx-facebook-preset\u003e\u003c/svg:g\u003e\n\u003c/ngx-content-loading\u003e\n\n\u003cngx-content-loading [width]=\"800\" [height]=\"800\"\u003e\n    \u003csvg:g ngx-instagram-preset\u003e\u003c/svg:g\u003e\n\u003c/ngx-content-loading\u003e\n```\n\n#### Available presets\n    - ngx-facebook-preset\n    - ngx-instagram-preset\n    - ngx-code-preset\n    - ngx-list-preset\n    - ngx-bullet-list-preset\n\n\n### Define custom shapes\n\n```html\n\u003cngx-content-loading \n    [speed]=\"'1500ms'\"\n    [width]=\"1000\"\n    [height]=\"300\"\n    [primaryColor]=\"'#222'\"\n    [secondaryColor]=\"'#5e5e5e'\"\u003e\n    \u003csvg:g ngx-circle cy=\"30\" cx=\"30\" r=\"30\" ry=\"5\"\u003e\u003c/svg:g\u003e\n      \u003csvg:g ngx-rect width=\"150\" height=\"10\" y=\"10\" x=\"70\" rx=\"5\" ry=\"5\"\u003e\u003c/svg:g\u003e\n      \u003csvg:g ngx-rect width=\"90\" height=\"10\" y=\"40\" x=\"70\" rx=\"5\" ry=\"5\"\u003e\u003c/svg:g\u003e\n      \u003csvg:g ngx-rect width=\"210\" height=\"10\" y=\"70\" x=\"0\" rx=\"5\" ry=\"5\"\u003e\u003c/svg:g\u003e\n      \u003csvg:g ngx-rect width=\"240\" height=\"10\" y=\"100\" x=\"0\" rx=\"5\" ry=\"5\"\u003e\u003c/svg:g\u003e\n  \u003c/ngx-content-loading\u003e\n```\n\n## API\n\n| Name                | Type     | Default         | Description                                                     |\n| ------------------- | -------- | --------------- | --------------------------------------------------------------- |\n| speed               | _Number_ | `1000ms`        | Animation speed specified in s or ms                            |\n| width               | _Number_ | `400`           | **viewBox** width of SVG                                        |\n| height              | _Number_ | `130`           | **viewBox** height of SVG                                       |\n| primaryColor        | _String_ | `#f3f3f3`       | Background the SVG                                              |\n| secondaryColor      | _String_ | `#ecebeb`       | Animation color                                                 |\n| preserveAspectRatio | _String_ | `xMidYMid meet` | Aspect ratio option of SVG                                      |\n\n\n### Transclude elements before and after the SVG element\n\n```html\n\u003cngx-content-loading \n    [speed]=\"'1500ms'\"\n    [width]=\"1000\"\n    [height]=\"300\"\n    [primaryColor]=\"'#222'\"\n    [secondaryColor]=\"'#5e5e5e'\"\u003e\n        \u003cb before-svg\u003e\n            I am transcluded before the svg\n        \u003c/b\u003e\n        \u003csvg:g ngx-circle cy=\"30\" cx=\"30\" r=\"30\" ry=\"5\"\u003e\u003c/svg:g\u003e\n        \u003csvg:g ngx-rect width=\"150\" height=\"10\" y=\"10\" x=\"70\" rx=\"5\" ry=\"5\"\u003e\u003c/svg:g\u003e\n        \u003csvg:g ngx-rect width=\"90\" height=\"10\" y=\"40\" x=\"70\" rx=\"5\" ry=\"5\"\u003e\u003c/svg:g\u003e\n        \u003csvg:g ngx-rect width=\"210\" height=\"10\" y=\"70\" x=\"0\" rx=\"5\" ry=\"5\"\u003e\u003c/svg:g\u003e\n        \u003csvg:g ngx-rect width=\"240\" height=\"10\" y=\"100\" x=\"0\" rx=\"5\" ry=\"5\"\u003e\u003c/svg:g\u003e\n        \n        \u003cb after-svg\u003e\n            I am transcluded after the svg\n        \u003c/b\u003e\n  \u003c/ngx-content-loading\u003e\n```\n\n## Development\n\nFork the repo then clone it\n\n`$ git clone git@github.com:YourUsername/ngx-content-loading.git \u0026\u0026 cd ngx-content-loading`\n\nInstall the dependencies\n\n`$ yarn` or `npm i`\n\nRun the demo app\n\n`$ npm start`\n\n## License\n\n[MIT](https://github.com/gbuomprisco/ngx-content-loading/blob/master/LICENSE)\n\nPlease notice this is a work in progress and may not be ready for production usage.\n\nMore presets and options will follow soon :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbuomprisco%2Fngx-content-loading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgbuomprisco%2Fngx-content-loading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbuomprisco%2Fngx-content-loading/lists"}