素材牛VIP会员

jQuery兼容手机移动端相册图片幻灯片插件PhotoSwipe v4.1.1

 所属分类:网页特效-焦点图/幻灯片,图片特效,悬浮层/弹出层

 浏览:4001次  下载:26次  评论:1次  更新时间:2016-12-03
jQuery兼容手机移动端相册图片幻灯片插件PhotoSwipe v4.1.1兼容IE9
积分说明:注册即送10牛币,每日签到可获得5牛币,成为VIP会员可永久免牛币下载!   充值积分   充值会员   更多说明»
素材描述:PhotoSwipe是一个专门针对移动设备的图像画廊,它的灵感来自iOS的图片浏览器和谷歌移动端图像。 PhotoSwipe提供您的访客熟悉和直观的界面,使他们能够与您的移动网站上的图像进行交互。

详细介绍

使用方法:

引入CSS样式文件

<link rel='stylesheet prefetch' href='css/photoswipe.min.css'>
<link rel='stylesheet prefetch' href='css/default-skin.min.css'> 

引入插件JS文件

<script src='js/photoswipe.min.js'></script>
<script src='js/photoswipe-ui-default.min.js'></script>
<script src="js/index.js"></script>

HTML结构

<button id="btn">Open PhotoSwipe</button>
<!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
    <!-- Background of PhotoSwipe. 
         It's a separate element, as animating opacity is faster than rgba(). -->
    <div class="pswp__bg"></div>
    <!-- Slides wrapper with overflow:hidden. -->
    <div class="pswp__scroll-wrap">
        <!-- Container that holds slides. PhotoSwipe keeps only 3 slides in DOM to save memory. -->
        <div class="pswp__container">
            <!-- don't modify these 3 pswp__item elements, data is added later on -->
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>
        <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
        <div class="pswp__ui pswp__ui--hidden">
            <div class="pswp__top-bar">
                <!--  Controls are self-explanatory. Order can be changed. -->
                <div class="pswp__counter"></div>
                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
                <button class="pswp__button pswp__button--share" title="Share"></button>
                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
                <!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
                <!-- element will get class pswp__preloader--active when preloader is running -->
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                      <div class="pswp__preloader__cut">
                        <div class="pswp__preloader__donut"></div>
                      </div>
                    </div>
                </div>
            </div>
            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div> 
            </div>
            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>
            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>
            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>
          </div>
        </div>
</div>

相关素材 - 焦点图/幻灯片,图片特效,悬浮层/弹出层

讨论这个素材(1)回答他人问题或分享使用心得会奖励牛币

d1***18  
2020年07月11日

很不错

回复
 文明上网,理性发言!   😉 阿里云幸运券,戳我领取
我的牛币余额:0 已下载次数:26
所需牛币:1 开始下载

牛币获取:签到、评论、充值    » 在线充值(10牛币=1元)