SVG Component To Create Placeholder Content Loader In Angular


An angular component that uses SVG to create a set of loaders that simulate the structure of the content to be loaded, similar to Facebook card loaders.

ngneatcontent loader, angular svg loader, react native svg loader, react content loader, content loader in angular, ngx skeleton loader, content loader npm


This is an angular port for the interaction content loader.

  • ⚙️Fully customizable: you can change colors, speed, and sizes.
  • ✏️ Create your own upload: use our interactive content creator to easily create custom uploads.
  • 👌 You can use it now: there are a lot of presets to use the loader, see options.
  • 🚀 Performance: It uses pure SVG to work, so it works without any extra scripts, canvas, etc.

How to make use of it:


yarn add @ngneat/content-loader


import { ContentLoaderModule } from '@ngneat/content-loader';

  imports: [ContentLoaderModule]
export class AppModule {}
  <svg:rect x="0" y="0" rx="3" ry="3" width="250" height="10" />
  <svg:rect x="20" y="20" rx="3" ry="3" width="220" height="10" />
  <svg:rect x="20" y="40" rx="3" ry="3" width="170" height="10" />
  <svg:rect x="0" y="60" rx="3" ry="3" width="250" height="10" />
  <svg:rect x="20" y="80" rx="3" ry="3" width="200" height="10" />
  <svg:rect x="20" y="100" rx="3" ry="3" width="80" height="10" />



Prop name and type
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 commonly used as: 
<ContentLoader baseUrl={window.location.pathname} /> which will fill the SVG attribute with the relative path.
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.
gradientRatio?: number
Defaults to 1.2
The width of the animated gradient is a fraction of the view box width.
rtl?: boolean
Defaults to false
Content right-to-left.
backgroundColor?: string
Defaults to #f5f6f7
Used as the 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 {}

Angular SVG Content Loader Plugin/Github

See Demo And Download

Official Website(ngneat): Click Here

This superior jQuery/javascript plugin is developed by ngneat. For extra advanced usage, please go to the official website.