滑块上的圆形效果

时间:2015-09-17 02:12:36

标签: jquery css slider carousel

有没有人知道我可以用来实现这种效果的现有jquery插件?

我需要以循环方式循环重叠图像并更改缩放。

enter image description here

1 个答案:

答案 0 :(得分:3)

你可以使用这个:http://www.bkosborne.com/jquery-waterwheel-carousel/

页面上的简单演示:

的JavaScript

...
<!-- note: should work with jQuery 1.4 and up -->
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js">
<script type="text/javascript" src="/jquery.waterwheelCarousel.min.js">
<script type="text/javascript">
  $(document).ready(function() {
    $("#carousel").waterwheelCarousel({
      // include options like this:
      // (use quotes only for string values, and no trailing comma after last option)
      // option: value,
      // option: value
    });
  });
</script>
...

CSS

...
<style type="text/css">
  #carousel {
    width:800px;
    height: 300px;
    display: relative;
  }
  #carousel img {
    display: hidden; /* hide images until carousel prepares them */
    cursor: pointer; /* not needed if you wrap carousel items in links */
  }
</style>
...

HTML

...
<div id="carousel">
<img src="/image1.jpg" alt="Image 1" />
<img src="/image2.jpg" alt="Image 2" />
<img src="/image3.jpg" alt="Image 3" />
<img src="/image4.jpg" alt="Image 4" />
<img src="/image5.jpg" alt="Image 5" />
</div>
...