Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@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.
The npm package @cycraft/splide receives a total of 0 weekly downloads. As such, @cycraft/splide popularity was classified as not popular.
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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.