Git Product home page Git Product logo

jquery-full-screen-gallery's Introduction

jQuery-full-screen-gallery HTML5 全屏幻灯组图浏览

由于经常拍照,对于高清大照片,总觉得电脑屏幕太小看着不太爽,想放大看细节也不太方便,既然HTML5支持全屏了,那为何不用呢? 于是写了这么一个小东东,只为满足自己看高清大图的需求。

特点: 在支持HTML5 fullscreen API的浏览器上自动全屏显示 支持双击缩放图片,可方便的查看原片的画质 支持键盘翻页

HTML:

<div id="container">
<a href="big.jpg"  rel="fullScreenGallery" title="那一年荷花开满池塘">
<img src="thumb.jpg" width="200">
</a>
<a href="big.jpg"  rel="fullScreenGallery" title="那一年荷花开满池塘">
<img src="thumb.jpg" width="200">
</a>
</div>

为A链接 链接增加 rel="fullScreenGallery" 属性,href为大图的地址。

JS调用:

<script type="text/javascript">
$('#container a[rel="fullScreenGallery"]').fullScreenGallery();
</script>

jquery-full-screen-gallery's People

Stargazers

event-姚佳 avatar  avatar Rodrigo S avatar

Watchers

James Cloos avatar yaojia avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.