Sleep

Composable components for making progressive web content like Facebook in Vue.js

.vue-content-placeholders.Vue.js plugin for making bogus material (Facebook like). It could be valuable as a placeholder while web content is loading or even data fetching to provide better UX as well as lower bounce price.You can use it as every other element (plugin) for Vue ventures. For example:.Consumption.Installment.* by means of npm: 'npm put up vue-content-placeholders-- conserve'.* through anecdote: 'anecdote incorporate vue-content-placeholders'.Feature the plugin in your main.js report.bring in Vue from 'vue'.import VueContentPlaceholders coming from 'vue-content-placeholders'.Vue.use( VueContentPlaceholders).A css documents is consisted of when importing the package. You may need to setup your bundler to embed the css in your page.In your templates:.content-placeholders is actually the main part as well as within 3 sorts of web content can easily exist.
For readily available buildings look further listed below.
Outcome:.
Result:.On call components as well as properties.root.Boolean animated (default: accurate).Boolean pivoted (default: false) - perimeter distance.Boolean based (nonpayment: false).These homes describe how all youngsters elements are going to behave.
Boolean img (nonpayment: inaccurate).
Amount lines (default: 4).That's it more or less! This open source venture is under an MIT license.