
Security News
Suno Breached via Shai-Hulud Worm, Leaked Code Exposes AI Music Scraping
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.
carousel-html5
Advanced tools
移动端网站首页几乎都会用到的图片轮播组件。
组件使用了 touchstart 和 touchend` 事件,所以仅适用于移动端
直接引入dist或者使用npm安装后import
import Carousel from 'Carousel'
var c = new Carousel({
root: 'component-carousel',
speed: 300, /* 可选参数,表示滑动速度,默认 300,单位 ms */
interval: 3000, /* 可选参数,表示定时器间隔,不传则不开启定时器,单位 ms */
onSwitch: function (currentIndex) { /* 可选参数,切换回调,返回切换后index */
console.log(currentIndex)
}
})
要求 #root 是以下结构:
<div id="component-carousel">
<ul>
<li><img src="xxx"></li><!-- 元素个数 >= 1, 1时不播放,2时自动补足成4个以便于切换 -->
<li><img src="xxx"></li>
<li><img src="xxx"></li>
<li><img src="xxx"></li>
<li><img src="xxx"></li>
</ul>
</div>
FAQs
carousel
The npm package carousel-html5 receives a total of 1 weekly downloads. As such, carousel-html5 popularity was classified as not popular.
We found that carousel-html5 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
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.

Security News
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.