
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
tiny-swiper
Advanced tools
Ingenious JavaScript Carousel powered by wonderful plugins with native-like experience for the web.
Ingenious JavaScript Carousel powered by wonderful plugins with native-like experience. Lightweight yet extensible. Import plugins as needed, No more, no less. Zero dependency, written in TypeScript, used for free and without any attribution.
Looking for more details about APIs and Demos, visit tiny-swiper.js.org
# via npm
$ npm install tiny-swiper --save
# via yarn
$ yarn add tiny-swiper
If you prefer CDN
<script src="https://unpkg.com/tiny-swiper@latest"></script>
Html code:
<!-- Slider main container -->
<div class="swiper-container">
<!-- Additional required wrapper -->
<div class="swiper-wrapper">
<!-- Slides -->
<div class="swiper-slide">Slide 1</div>
<div class="swiper-slide">Slide 2</div>
<div class="swiper-slide">Slide 3</div>
...
</div>
<!-- If we need pagination -->
<div class="swiper-pagination"></div>
</div>
JavaScript/TypeScript code:
import Swiper, {
SwiperPluginLazyload,
SwiperPluginPagination
} from 'tiny-swiper'
Swiper.use([ SwiperPluginLazyload, SwiperPluginPagination ])
const swiper = new Swiper(swiperContainer: HTMLElement | string, parameters?: TinySwiperParameters)
new Swiper()
- initialize swiper with options.Swiper.use()
- Register plugin.swiperContainer
- HTMLElement or string (with CSS Selector) of swiper container HTML element. Required.parameters
- object with Swiper parameters. Optional.You also can load full-featured Tiny-Swiper:
import Swiper from 'tiny-swiper/lib/index.full.js'
<script src="https://unpkg.com/tiny-swiper@latest/lib/index.full.js"></script>
All modern browsers are supported, include IE10+.
![]() IE / Edge | ![]() Firefox | ![]() Chrome | ![]() Safari | ![]() iOS Safari | ![]() Samsung | ![]() Opera |
---|---|---|---|---|---|---|
IE10, IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
Please make sure to read the Contributing Guide before making a pull request.
Thanks goes to these wonderful people
Tiny-Swiper is licensed under a MIT License.
FAQs
Ingenious JavaScript Carousel powered by wonderful plugins with native-like experience for the web.
The npm package tiny-swiper receives a total of 1,637 weekly downloads. As such, tiny-swiper popularity was classified as popular.
We found that tiny-swiper 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.