Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🔍 Zoom responsively, images & more, w/ jQuery.

License

NotificationsYou must be signed in to change notification settings

AndersDJohnson/magnificent.js

Repository files navigation

Zoom responsively. A jQuery plugin for responsive zoom of images & more!

NPM versionBowerBuild Status

NPM

Join the chat at https://gitter.im/AndersDJohnson/magnificent.js

Table of Contents

(Table of contents generated byverb)

Demo

Check out thedemo! Or thedata-* attributesdemo.

Features

2.0

  • Scroll-to-zoom
  • Drag interaction
  • Inline option
  • Control buttons
  • Different proportions for thumb vs. zoom
  • CSS 3D transforms
  • Full screen (coming soon)
  • Event support, e.g. for stats/HUDs

2.1

  • Touch interaction (pan, pinch)
  • Analytics
  • Stabilized scroll-to-zoom, better for touchpads

2.2

  • Supportdata-* attributes for#37.

Install

Bower

Install withbower

$ bower install magnificent --save

npm

Install withnpm

$ npm i magnificent --save

Manual

Download manually.

Usage

  1. Load
  2. Integrate

Load

If you're using AMD or Browersify, you'll probably just want to specify any main files you need, e.g.src/js/mag-jquery.js, as dependencies in your script(s).

You'll also want to include the CSS files below in your page.

Otherwise, you'll have to include individually in your page any main files you need, preceded by their dependencies.

<scriptsrc="bower_components/jquery/dist/jquery.js"></script><scriptsrc="bower_components/jquery-bridget/jquery.bridget.js"></script><scriptsrc="bower_components/jquery-mousewheel/jquery.mousewheel.js"></script><scriptsrc="bower_components/jquery.threedubmedia/event.drag/jquery.event.drag.js"></script><scriptsrc="bower_components/screenfull/dist/screenfull.js"></script><scriptsrc="bower_components/google-analytics-js/gajs.js"></script><scriptsrc="bower_components/hammerjs/hammer.js"></script><scriptsrc="bower_components/prevent-ghost-click/PreventGhostClick.js"></script>
<scriptsrc="bower_components/magnificent/src/js/mag-analytics.js"></script><scriptsrc="bower_components/magnificent/src/js/mag.js"></script><scriptsrc="bower_components/magnificent/src/js/mag-jquery.js"></script><scriptsrc="bower_components/magnificent/src/js/mag-control.js"></script><linkrel="stylesheet"href="bower_components/magnificent/src/css/mag.css"/><linkrel="stylesheet"href="bower_components/magnificent/src/theme/default.css"/>

Integrate

See usage examples indemo.Also theJSDoc, especiallyoptions.

Analytics

This component includes tracking via Google Analytics.The purpose is to better understand how and where it's used, as a guide for development.

To opt-out of this tracking, before loading the script on your page,use the global options in JavaScript, withnoTrack set totrue, as follows:

window.MAGNIFICENT_OPTIONS={noTrack:true};

Contributing

Pull requests and stars are always welcome. For bugs and feature requests,please create an issue.

In lieu of a formal styleguide, please:

  • Take care to maintain the existing coding style
  • Add unit tests for any new or changed functionality
  • Re-build documentation withverb-cli before submitting a pull request.

Build Docs

Install dev dependencies, then runverb:

$npminstall-d&&verb

Tests

Install dev dependencies:

$ npm i -d&& npmtest

v1.x

Seehttps://github.com/AndersDJohnson/magnificent.js/tree/v1.x.

Alternatives

License

Copyright © 2013-2017Anders D. Johnson.Released under the MIT license.


This file was generated byverb-cli on September 02, 2017.

About

🔍 Zoom responsively, images & more, w/ jQuery.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp