Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ds-carousel
Advanced tools
Simple but slick carousel that works with mouse, touch and trackpad events.
Readme
Simple but slick carousel that works with mouse, touch and trackpad events.
Here is a basic example of how to create a new DS-Carousel by giving it a container with your slides from HTML.
index.html
<div id='#myslides'>
<div class='slide'>
<h1>Slide #1 Title</h1>
<p>Slide #1 Content here. Lorem Ipsum</p>
</div>
<div class='slide'>
<h1>Slide #2 Title</h1>
<p>Slide #2 Content here. Lorem Ipsum</p>
</div>
</div>
index.js
import Carousel from 'ds-carousel';
const slides = document.querySelector('#slides');
const carousel = new Carousel(slides);
In this example, we'll create an empty DS-Carousel and then fill it using a for loop. This method might be better suited for procedurally generated carousels:
index.js
import Carousel from 'ds-carousel';
const carousel = new Carousel();
for (let i = 0; i < 3; i += 1) {
const slide = document.createElement('div');
slide.innerHTML = `<h1>Slide ${i}</h1>`;
carousel.addSlide(slide);
}
document.body.appendChild(carousel.el);
Note: since this carousel was generated from code it still needs to be added to the DOM after initialization.
FAQs
Simple but slick carousel that works with mouse, touch and trackpad events.
The npm package ds-carousel receives a total of 1 weekly downloads. As such, ds-carousel popularity was classified as not popular.
We found that ds-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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.