3dcarousel 中文文档教程

发布于 8年前 浏览 24 项目主页 更新于 3年前

3Dcalrousel


很棒的 3D 轮播插件

Demo

https://websoldire.github.io/3Dcalrousel/

CDN

开始使用马上 3Dcalrousel,有几个可用的 CDN 选择 尽可能快地为您的用户提供文件:

  • https://websoldire.github.io/3Dcalrousel/jquery.newCarousel.1.1.js
  • https://websoldire.github.io/3Dcalrousel/jquery.newCarousel.css
Example using jsDelivr

只需在 中添加指向 css 文件的链接:

<link rel="stylesheet" type="text/css" href="newCarousel.css">
<script src="jquery.touchSwipe.min.js"></script>
<script src="jquery.newCarousel.1.1.js"></script>

然后,在您关闭 < /code> 标签添加:

Contributing

请在请求功能、提交拉取请求或提交问题之前查看 CONTRIBUTING.markdown。

Html Settings

在 3Dcarousel 1.1 中,您需要遵循以下 html 结构

示例:

<div class="container">
    <div class="box">
        <figure><div class="one">1</div></figure>
        <figure><div class="two">2</div></figure>
        <figure><div class="three">3</div></figure>
        <figure><div class="four">4</div></figure>
        <figure><div class="five">5</div></figure>
        <figure><div class="six">6</div></figure>
        <figure><div class="six">7</div></figure>
        <figure><div class="six">8</div></figure>
        <figure><div class="six">9</div></figure>
        <figure><div class="six">10</div></figure>
        <figure><div class="six">11</div></figure>
        <figure><div class="six">12</div></figure>
        <figure><div class="six">13</div></figure>
        <figure><div class="six">14</div></figure>
    </div>
</div>

JavaScript setting and default options

    $(".container").carousel({
        timer:1500,
        auto:true,
        navigation:true,
        prevText:"prev",
        nextText:"next",
        swipe:true,
        infiniteLoop:true,
        axes:"y",
        margin:0 
    });

Options

Namedefaultdescription
autotrue3Dcarousel will auto play with this option
timer1500Interval between slide change
navigationtrueTo genrate navigation button in 3Dcarousel
prevText"prev"Add text into prev button
nextText"next"Add text into next button
swipetrueEnable or desable swipe functionality
infiniteLooptrue3Dcarousel will rotate infinite if this option is true
zIndex-100The z-index value of the fixed-position elements. By default these will be behind everything else on the page.
axes"x"if set value "x" it will genrate horizonral carousel. And "y" will ganrate vartical carousel
margin0Margin between each slide.

3Dcalrousel


Awesome 3D carousel plugin

Demo

https://websoldire.github.io/3Dcalrousel/

CDN

To start working with 3Dcalrousel right away, there's a couple of CDN choices availabile to serve the files as close, and fast as possible to your users:

  • https://websoldire.github.io/3Dcalrousel/jquery.newCarousel.1.1.js
  • https://websoldire.github.io/3Dcalrousel/jquery.newCarousel.css
Example using jsDelivr

Just add a link to the css file in your <head>:

<link rel="stylesheet" type="text/css" href="newCarousel.css">
<script src="jquery.touchSwipe.min.js"></script>
<script src="jquery.newCarousel.1.1.js"></script>

Then, before your closing <body> tag add:

Contributing

PLEASE review CONTRIBUTING.markdown prior to requesting a feature, filing a pull request or filing an issue.

Html Settings

In 3Dcarousel 1.1 you need to follow this html structure

Example:

<div class="container">
    <div class="box">
        <figure><div class="one">1</div></figure>
        <figure><div class="two">2</div></figure>
        <figure><div class="three">3</div></figure>
        <figure><div class="four">4</div></figure>
        <figure><div class="five">5</div></figure>
        <figure><div class="six">6</div></figure>
        <figure><div class="six">7</div></figure>
        <figure><div class="six">8</div></figure>
        <figure><div class="six">9</div></figure>
        <figure><div class="six">10</div></figure>
        <figure><div class="six">11</div></figure>
        <figure><div class="six">12</div></figure>
        <figure><div class="six">13</div></figure>
        <figure><div class="six">14</div></figure>
    </div>
</div>

JavaScript setting and default options

    $(".container").carousel({
        timer:1500,
        auto:true,
        navigation:true,
        prevText:"prev",
        nextText:"next",
        swipe:true,
        infiniteLoop:true,
        axes:"y",
        margin:0 
    });

Options

Namedefaultdescription
autotrue3Dcarousel will auto play with this option
timer1500Interval between slide change
navigationtrueTo genrate navigation button in 3Dcarousel
prevText"prev"Add text into prev button
nextText"next"Add text into next button
swipetrueEnable or desable swipe functionality
infiniteLooptrue3Dcarousel will rotate infinite if this option is true
zIndex-100The z-index value of the fixed-position elements. By default these will be behind everything else on the page.
axes"x"if set value "x" it will genrate horizonral carousel. And "y" will ganrate vartical carousel
margin0Margin between each slide.
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文