https://github.com/cuth/body-image
Zoom into the page to view the image close up rather than pulling the image off the page.
https://github.com/cuth/body-image
Last synced: 10 months ago
JSON representation
Zoom into the page to view the image close up rather than pulling the image off the page.
- Host: GitHub
- URL: https://github.com/cuth/body-image
- Owner: cuth
- Created: 2013-09-03T03:21:16.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-05-15T04:15:31.000Z (about 12 years ago)
- Last Synced: 2024-12-28T06:20:22.177Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 520 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Body Image
==========
Zoom into the page to view the image close up rather than pulling the image off the page.
Requires jQuery and a modern browser.
Wrap an image element with a anchor element with an href to a larger version of the same image. Use data-width and data-height attributes on the anchor tag to give the image a maximum size.
```html
```
This first parameter is a jQuery collection of anchor elements. Use the second parameter to change the default options.
```js
var example1 = new BodyImage('.examples', {
useArrowKeys: false,
windowLoad: true
});
```