在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:nicinabox/superslides开源软件地址:https://github.com/nicinabox/superslides开源编程语言:JavaScript 92.2%开源软件介绍:/!\ This project is currently unmaintainedIf you're interested in maintaining this project and triaging bugs chime in on this issue. SuperslidesSuperslides is a full screen, hardware accelerated slider for jQuery. I wasn't happy with the state of full screen sliders, so naturally I built my own. UsageCheck out the demo for an interactive example or the examples folder for individual cases. Use like your standard jQuery plugin: $('#slides').superslides() Options
ElementsThe following are element classes accessible under the
EventsSuperslides triggers a few events that you can bind to.
API$('#slides').superslides('start')
$('#slides').superslides('stop')
$('#slides').superslides('animate' [, index|'next'|'prev'])
$('#slides').superslides('size')
$('#slides').superslides('destroy')
$('#slides').superslides('current') // get current slide index
$('#slides').superslides('next') // get next slide index
$('#slides').superslides('prev') // get previous slide index If adding slides after initialization (a la ajax), be sure to call StylingAll styling required for functionality is handled in the JavaScript. Additional and optional styling is provided in MarkupMarkup is pretty straightforward. At minimum it looks something like this: <div id="slides">
<div class="slides-container">
<img src="http://flickholdr.com/1000/800" alt="">
<img src="http://flickholdr.com/1000/800" alt="">
</div>
</div> You could even use a UL as the <div id="slides">
<ul class="slides-container">
<li>
<img src="http://flickholdr.com/1000/800" alt="">
<div class="container">
Slide one
</div>
</li>
<li>
<img src="http://flickholdr.com/1000/800/space" alt="">
<div class="container">
Slide two
</div>
</li>
<li>
<img src="http://flickholdr.com/1000/800/tech" alt="">
<div class="container">
Slide three
</div>
</li>
</ul>
<nav class="slides-navigation">
<a href="#" class="next">Next</a>
<a href="#" class="prev">Previous</a>
</nav>
</div> Custom AnimationsI realize that you might want to do something unique in your application. That's why I've added the ability to extend the existing animations with your own. See $.fn.superslides.fx = $.extend({
flip: function(orientation, complete) {
console.log(orientation);
complete();
}
}, $.fn.superslides.fx); Hardware AccelerationSuperslides is compatible with the jQuery Animate Enhanced plugin. Simply include it before this plugin and it will automatically smooth out transitions using CSS instead of JavaScript. ContributingCheck contributing.md. Changelog |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论