From 474dfc66305799541bb512fe2e69b2cf846a2ae1 Mon Sep 17 00:00:00 2001 From: Tom Doan Date: Mon, 22 Dec 2014 16:15:59 +0800 Subject: [PATCH] Updated to v1.1 --- README.md | 16 +++++++-------- css/magnify.css | 5 +---- js/jquery.magnify.js | 46 +++++++++++++++++++++++++++----------------- package.json | 2 +- 4 files changed, 37 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 3d92a56..e1e0212 100644 --- a/README.md +++ b/README.md @@ -16,14 +16,12 @@ Magnify JS is a simple, lightweight jQuery plugin that adds a magnifying glass s You have complete control over the style and size of the lens by modifying `magnify.css`. It is recommended to load the two JavaScript files at the bottom just before the closing `` tag if possible. -### Step 2: Add the HTML +### Step 2: Specify the large image -Assign the `magnify-image` class to the small image. The URI to the large image can be placed in the `data-magnify-src` attribute (as shown below) or passed as the `src` option when calling the `.magnify()` function. Assign the `magnify` class to the small image's parent element. +The URI to the large image can be placed in the `data-magnify-src` attribute (as shown below) or passed as the `src` option when calling the `.magnify()` function. ```html -
- -
+ ``` ### Step 3: Call the .magnify() function @@ -33,7 +31,7 @@ Make sure this comes after the two required JavaScript files from Step 1 are loa ```html ``` @@ -43,8 +41,8 @@ Calling the `.magnify()` function with options: ```html