Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
vue-wave-skeleton
Advanced tools
Cool Wave Skeleton component for loading content in Vue 3. Animated, unique, and chill.
Animated skeleton component for Vue 3, by moving svg wave with constant chill animation. A cool way to show that the text content of your page is loading, an alternative to the boring, typical skeletons.
npm i vue-wave-skeleton
import WaveSkeleton from 'vue-wave-skeleton'
// register globally
app.component('WaveSkeleton', WaveSkeleton)
// or locally
export default {
components: { WaveSkeleton },
// ...
}
<!-- place the component inside the template -->
<WaveSkeleton />
/* and set the size in css */
.wave-skeleton {
width: 260px;
height: 30px;
}
Right now there aren't a lot of these. But let me know if you need some.
String
Some css properties can be easily changed by setting css variables.
/* the defaults: */
.gooey-background {
/* name of the infinite animation, the default is a simple fade */
--wave-skeleton-animation: wave-skeleton-fade;
/* duration of the animation */
--wave-skeleton-duration: 800ms;
/* stroke color of the wave */
--wave-skeleton-color: #828282;
/* stroke width */
--wave-skeleton-stroke-width: 5.2px;
/* shape of the path cap */
--wave-skeleton-stroke-linecap: round;
}
Right now this component doesn't have a default height or width, so it's for you to decide on it yourself and set it.
The generall rule is to have matching height
between components you want to have looking similar.
To add other sizes e.g. to represent titles or captions, use classes, like .title
or .caption
.
<WaveSkeleton class="title" /> <WaveSkeleton class="title smaller" />
.wave-skeleton.title {
width: 280px;
height: 50px;
}
.wave-skeleton.smaller {
width: 130px;
}
The original solution I've based mine is this codepen by Varun Vachhar. Also check out my prototype codepen where I've tried to adapt this solution.
Generally I've made this component to use in my personal projects. But let me know if you have any ideas / requests regarding this component. It's a really cool effect, so I would like to tur it into an even better component.
FAQs
Cool Wave Skeleton component for loading content in Vue 3. Animated, unique, and chill.
The npm package vue-wave-skeleton receives a total of 0 weekly downloads. As such, vue-wave-skeleton popularity was classified as not popular.
We found that vue-wave-skeleton demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.