网页中360度展示产品

Demo地址演示

源码举例


<html>
    <head>
        <title>360度产品展示</title>
        <link rel="stylesheet" href="assets/css/main.css">
	<meta charset="utf-8" />
    </head>
    <body>
        <h1>360度产品展示</h1>
        <h2>通过不同视角向您展示产品的“秘密”</h2>
        <div class="threesixty-wrapper">
            <div class="threesixty" data-path="assets/img/src/gem{index}.jpg" data-count="61">
                <!-- put your preloader here -->
                <div class="ui-spinner">
                    <span class="side side-left">
                        <span class="fill"></span>
                    </span>
                    <span class="side side-right">
                        <span class="fill"></span>
                    </span>
                </div>
                <!-- end preloader -->
            </div>
            <div class="ui">
                <div class="next">下一页</div>
                <div class="prev">上一页</div>
            </div>
            <img src="assets/img/label.png" alt="" class="label"/>
        </div>
        <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
        <script src="assets/js/jquery.threesixty.js"></script>
        <script>
            $(document).ready(function(){

                var $threeSixty = $('.threesixty');

                $threeSixty.threeSixty({
                    dragDirection: 'horizontal',
                    useKeys: true,
                    draggable: true
                });

                $('.next').click(function(){
                    $threeSixty.nextFrame();
                });

                $('.prev').click(function(){
                    $threeSixty.prevFrame();
                });

                $threeSixty.on('down', function(){
                    $('.ui, h1, h2, .label, .examples').stop().animate({opacity:0}, 300);
                });

                $threeSixty.on('up', function(){
                    $('.ui, h1, h2, .label, .examples').stop().animate({opacity:1}, 500);
                });
            });
        </script>
    </body>
</html>

如果有问题也欢迎向我进行提问,我会很及时解决,也可以访问的我的[个人博客](http://www.dale047.com/)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值