Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
just-carousel
Advanced tools
Just an 1-item-on-screen carousel that works naturally like an iOS/android desktops and nothing else.
Just an 1-item-on-screen carousel that works naturally like an iOS/android desktops and nothing else.
transform3d
).Thus, this carousel will suit you, if you just need a lightweight, simple, 1-item-on-screen touch-carousel.
Need something more? Try Swiper.
$ npm install -S just-carousel
or oldschool method:
<script src="just-carousel.js"></script>
<div class="carousel">
<ul> <!-- Root element must contain ul > li structure -->
<li>1</li> <!-- li may contain anything -->
<li>2</li>
<li>3</li>
</ul>
</div>
const justCarousel = require('just-carousel'); // ← if you use build system
const carousel = new JustCarousel({
root: document.querySelector('.carousel'),
onChangePos: function (data) {
console.log(data); // {prevSlide, currentSlide}
}
});
Type: DOM Node
Required
A root element of carousel.
Starting element.
Type: function
Calls when the end of the animation. Accepts only object argument
contains fields: prevSlide
and currentSlide
.
Calls whenever any animation is started, including calling slideTo and user touch moving. Useful to optimize FPS. (For example, you can stop video playing inside of slide when carousel animating.)
Calls whenever any animation is stopped.
You can try to call it if something looks strange. it will recalculate some dimensions and reapply styles for slides.
MIT © f0rmat1k
Special thanks to air-breathing.
FAQs
Just an 1-item-on-screen carousel that works naturally like an iOS/android desktops and nothing else.
We found that just-carousel 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.