Observed since 20 Oct, 19:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
3d-slider
A customizable 3D cylindrical slider component for web projects.
A customizable animation slider component for web projects.
3D slider allows you to create an interactive slider with a unique 3D cylindrical animation effect. The slider dynamically adjusts for different screen sizes and supports configurable navigation, dots, and animations.
Installation:
npm install 3d-slider
or
yarn add 3d-slider
import { initializeSlider } from '3d-slider';
import '3d-slider/src/3d-slider.css';
initializeSlider({
sliderContainerClass: "slider", // CSS class of the slider container.
perspective: 1, // Slider container perspective.
transitionDuration: 2, // Transition duration for animations (in seconds) - Default: 2
alwaysOnMode: false, // Enable or disable continuous rotation mode.
alwaysOnDesktopDuration: 15, // Continuous rotation duration for desktop (in seconds) - Recommend: 15
alwaysOnMobileDuration: 5, // Continuous rotation duration for mobile (in seconds) - Recommend: 5
cardsToShowLargeScreen: 10, // Number of cards visible on large screens (≥1280px) - Default: 10
cardsToShowMediumScreen: 7, // Number of cards visible on medium screens (1024px–1279px) - Default: 7
cardsToShowSmallScreen: 4, // Number of cards visible on small screens (768px–1023px) - Default: 4
cardsToShowMobile: 2, // Cards to show on mobile mode (min 2) (max 3) 'Triangle mode' (<768px) - Default: 2
dotsMode: true, // Enable or disable navigation dots.
dotColor: "#959899", // HEX color for navigation dots (6 digit).
});
true / false).If the alwaysOnMode is enabled in the configuration:
Click on the Slider: Clicking toggles between rotation and pause. When paused, the slider snaps to the nearest angle, aligning the active card in the viewport.
This version of animate-slider has no external dependencies, making it lightweight and easy to use. No additional packages are required to run the slider.
<body>
<div class="your-slider-container-class">
<div>card-1</div>
<div>card-2</div>
<div>card-3</div>
</div>
</body>
Download counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
Source distribution
{
"shasum": "236ed7ab5d05a8e758dac91535f960071028c308",
"tarball": "https://registry.npmjs.org/3d-slider/-/3d-slider-1.2.0.tgz",
"fileCount": 8,
"integrity": "sha512-H4xRir7p4v0wXf9JptEMmrWnA3/nuyyUPc3DoA/aZ4bhujGTXnKEMLOKy6CkEsqeF7pni26kMW6qwafcdH9Vbw==",
"signatures": [
{
"sig": "MEUCIGMz6AgkyhA4+rmfl4glEBxsbFSDWhTYU26QVb5c8y+qAiEAhnUVegQTvTIMZjw6ue7bZhl8wGPbEG4d+WTeueTkh6w=",
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
}
],
"unpackedSize": 24937
}Shared repository data · GitHub
Observed since 20 Oct, 19:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:91a49c54ae0968ef9c036e9e2ade98c3d51b87f31758b3f260d2b7fb520b9cda