
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
@intothesource/slider
Advanced tools
Slider for sliding things.
<div data-its-slider>
<div data-its-slider-slides-container>
<div data-its-slider-slide> <!-- Slide 1 Content --> </div>
<div data-its-slider-slide> <!-- Slide 2 Content --> </div>
<div data-its-slider-slide> <!-- Slide 3 Content --> </div>
</div>
<button data-its-slider-button
data-its-slider-button-prev
data-its-slider-button-disabled
disabled>prev</button>
<button data-its-slider-button
data-its-slider-button-next
data-its-slider-button-disabled
disabled>next</button>
</div>
<script src="slider.js"></script>
<script>
var sliders = slider.Slider.init();
</script>
For a more complete example: See index.ejs.
You'll want to make sure that the content of the slider doesn't jump around the page before the slider JS has fully loaded. To mitigate this, make sure to include the following CSS in your project CSS (or inline it on the page).
The following CSS is most of how this slider is supposed to work. The additional CSS and JS from this component is to make sure that the navigation buttons are activated/de-activated and scroll snapping is implemented for devices that support it.
[data-its-slider-slides-container] {
display: flex;
overflow-x: scroll;
scrollbar-width: none;
-ms-overflow-style: none;
}
[data-its-slider-slides-container]::-webkit-scrollbar {
display: none;
}
@media (hover: none) and (pointer: coarse) {
[data-its-slider-slides-container] {
-webkit-overflow-scrolling: touch;
}
}
If you want Safari and IE to use smooth scrolling, you'll need to include a polyfill to your project.
<script src="https://unpkg.com/smoothscroll-polyfill@0.4.4/dist/smoothscroll.js"></script>
$ npm run build
$ npm run release -- [patch|minor|major]
$ npm run deploy:gh-pages
FAQs
Slider for sliding things.
The npm package @intothesource/slider receives a total of 17 weekly downloads. As such, @intothesource/slider popularity was classified as not popular.
We found that @intothesource/slider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.

Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.

Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.