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