Photor
Photor is a minimalistic lightweight jQuery gallery with touch devices support.
Browser Support
Full support: Chrome, Firefox, Safari, Opera 12+, IE 10+, iOS, Android.
Partial support: IE 8—9 (without animations).
Usage
-
Include
photor.min.js
andphotor.min.css
:<!-- 1.3 KB in gzip --><!-- 6.7 KB in gzip --> -
Add some HTML:
<!-- Add photos -->Note:
data-href
contains a path to the full size photo. -
Initialize Photor:
Or initialize with jQuery:
How to build
-
Make sure you have
nodejs
,npm
andgrunt-cli
installed; -
When in your project folder, run
git clone git@github.com:2gis/photor.git cd photor
to clone this repo into a new subfolder and jump into it;
-
Run
npm install grunt
to install all dependencies and build Photor;
Optional task grunt dev
builds Photor as well as starts a web server on port 3000, and runs a watcher that rebuilds the project on file change.
Configuration
You can specify parameters on initialization.
;