Vue Content Loader screenshot

Vue Content Loader

Author Avatar Theme by Egoist
Updated: 15 Jan 2023
3048 Stars

SVG component to create placeholder loading, like Facebook cards loading.

Overview:

vue-content-loader is a Vue port for react-content-loader. It provides a customizable SVG component to create placeholder loading animations, similar to Facebook card loading. It is optimized for performance, tree-shakable, and eliminates the need for JavaScript or canvas, being purely SVG-based.

Features:

  • Completely Customizable: Change colors, speed, and sizes according to your needs.
  • Create Your Own Loading: Utilize the online tool for creating custom loaders easily.
  • Ready-to-Use Presets: Multiple presets available for immediate use.
  • Performance Optimized: Tree-shakable and highly optimized for efficiency.
  • Pure SVG: Works without any JavaScript or canvas dependencies.
  • Functional Components: Built using pure functional components.

Installation:

To install vue-content-loader, you can use npm or yarn based on compatibility:

npm install vue-content-loader@^0.2  # For Vue 2 & Nuxt 2
npm install vue-content-loader        # For Vue 3

or with yarn:

yarn add vue-content-loader@^0.2     # For Vue 2 & Nuxt 2
yarn add vue-content-loader           # For Vue 3

For using CDN, the library is available at UNPKG or jsDelivr as window.contentLoaders.

Summary:

vue-content-loader offers a versatile solution for creating loading placeholders in Vue applications. With its customizable features, ready-to-use presets, and performance optimizations, it simplifies the process of adding loading animations while ensuring efficient rendering through its pure SVG implementation.