Sleep

Composable elements for providing progressive information like Facebook in Vue.js

.vue-content-placeholders.Vue.js plugin for leaving fake web content (Facebook like). It may be useful as a placeholder while web content is actually loading or even information fetching to give much better UX as well as lower bounce cost.You can utilize it as every other component (plugin) for Vue jobs. As an example:.Usage.Setup.* through npm: 'npm put in vue-content-placeholders-- save'.* via anecdote: 'anecdote include vue-content-placeholders'.Feature the plugin in your main.js data.import Vue coming from 'vue'.bring in VueContentPlaceholders coming from 'vue-content-placeholders'.Vue.use( VueContentPlaceholders).A css report is actually featured when importing the bundle. You might have to system your bundler to embed the css in your page.In your themes:.content-placeholders is the principal element and within 3 sorts of information can easily exist.
For offered residential properties check out even further listed below.
Result:.
Result:.Available components and also residential properties.root.Boolean animated (nonpayment: real).Boolean pivoted (nonpayment: false) - perimeter radius.Boolean focused (default: incorrect).These buildings determine how all little ones parts will act.
Boolean img (default: misleading).
Variety product lines (nonpayment: 4).That's it basically! This available resource task is under an MIT permit.