
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@cycraft/splide
Advanced tools
Splide is a lightweight and powerful slider without any dependencies.
Splide is a lightweight, powerful and flexible slider and carousel, written in pure JavaScript without any dependencies.
slideFocus
and waitForTransition
options.resetProgress
and throttle
options.drag
and pagination
.There are 3 ways to install the Splide on your site.
Only the NPM way is explained in the following steps. Visit this page for other methods.
$ npm install @splidejs/splide
<link rel="stylesheet" href="node_modules/@splidejs/splide/dist/css/splide.min.css">
<div id="splide" class="splide">
<div class="splide__track">
<ul class="splide__list">
<li class="splide__slide">Slide 01</li>
<li class="splide__slide">Slide 02</li>
<li class="splide__slide">Slide 03</li>
</ul>
</div>
</div>
import Splide from '@splidejs/splide';
new Splide( '#splide' ).mount();
Note that only the first element will be initialized even if using a class name.See the Integration section for your Vue or React project.
Pass an object to the second argument of the Splide
constructor:
new Splide( '#splide', {
type : 'loop',
perPage: 3,
} );
Or set a data-splide
attribute to a root element in a JSON format:
<div id="splide" class="splide" data-splide='{"type":"loop","perPage":3}'>
</div>
Here is a list of options and brief explanations. Visit this page for more details.
Easy to integrate the Splide slider or carousel into your Vue or React project.
Splide provides some APIs and the way to customize the behaviour programmatically.
Splide is released under the MIT license. © 2020 Naotoshi Fujita
FAQs
Splide is a lightweight and powerful slider without any dependencies.
We found that @cycraft/splide 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.