New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

alpinejs-skeleton

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alpinejs-skeleton

Adding reactive skeleton to your project without writing additional style directive or adding more html to your project

latest
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Alpine JS Skeleton

A lightweight Alpine.js plugin that adds a skeleton loading effect (pulse animation) to elements while data is being fetched or rendered. It mimics Tailwind’s animate-pulse using pure JavaScript and inline styles.

Install

With a CDN

<script
  defer
  src="https://unpkg.com/alpinejs-skeleton@latest/dist/cdn.min.js"
></script>

<script defer src="https://unpkg.com/alpinejs@latest/dist/cdn.min.js"></script>

With a Package Manager

npm install -D alpinejs-skeleton

yarn add -D alpinejs-skeleton
import Alpine from 'alpinejs'
import skeleton from 'alpinejs-skeleton'

Alpine.plugin(skeleton)

Alpine.start()

Example

Basic

<div x-data="{ loaded: true }">
  <div
    x-skeleton="loaded"
    style="width:200px;height:20px;border-radius:4px;"
  ></div>

  <template x-if="loaded">
    <p>Content loaded successfully.</p>
  </template>

  <button @click="loaded = !loaded">Toggle Loaded</button>
</div>

When loaded is true, the gray pulsing skeleton appears. When loaded becomes false, the animation and background are removed.

Keywords

Alpine

FAQs

Package last updated on 06 Nov 2025

Did you know?

Socket

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.

Install

Related posts