p-m-p/slider
关于
现代、轻量的内容滑块。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
A modern, light weight content slider
About
BoxSlider is a small library with zero dependencies that provides a light-weight, responsive content slider with multiple slide transition effects for modern browsers.
The library can be used standalone or via React and web components. View the website for full details.
Packages
@boxslider/slider
The core JavaScript library. Zero runtime dependencies. Provides factory functions and a BoxSlider
class for attaching transition effects to any container element.
Install from NPM:
npm install --save @boxslider/slider
Use from CDN:
<script type="module">
import { createCarouselSlider } from 'https://cdn.jsdelivr.net/npm/@boxslider/slider/+esm'
createCarouselSlider('#slider')
</script>
Available effects: createCarouselSlider · createCubeSlider · createFadeSlider · createTileSlider
@boxslider/react
React 19 component wrappers. Provides typed props and event handlers for all slider effects plus a
SliderControls component that adds navigation controls automatically.
Install via NPM:
npm install --save @boxslider/react
import { SliderControls, CarouselSlider } from '@boxslider/react'
function MySlider() {
return (
<SliderControls>
<CarouselSlider>
<div>Slide 1</div>
<div>Slide 2</div>
<div>Slide 3</div>
</CarouselSlider>
</SliderControls>
)
}
View the React guide for full details.
Available components: CarouselSlider · CubeSlider · FadeSlider · TileSlider · SliderControls
@boxslider/components
Framework-agnostic web components. Works in any modern browser or JavaScript framework without additional configuration.
Install via NPM:
npm install --save @boxslider/components
Use from CDN:
<script type="module" src="https://cdn.jsdelivr.net/npm/@boxslider/components/+esm"></script>
<bs-slider-controls>
<bs-carousel>
<div>Slide 1</div>
<div>Slide 2</div>
<div>Slide 3</div>
</bs-carousel>
</bs-slider-controls>
View the web components guide for full details.
Available elements: <bs-carousel> · <bs-cube> · <bs-fade> · <bs-tile> · <bs-slider-controls>
探索相关项目
加载中…