You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`src` | string | '' | URI of the large image that will be shown in the magnifying lens.
85
-
`speed` | number | 100 | Fade-in/out animation speed in ms when the lens moves on/off the image.
86
-
`timeout` | number | -1 | Wait period in ms before hiding the magnifying lens on touch devices. Set to `-1` to disable.
87
-
`finalWidth` | number | | Width of the main image. Set this only if the image animates into view and has a different initial width. If the image doesn't animate, then you should set the image width in CSS or via the `width` attribute.
88
-
`finalHeight` | number | | Height of the main image. Set this only if the image animates into view and has a different initial height. If the image doesn't animate, then you should set the image height in CSS or via the `height` attribute.
89
-
`magnifiedWidth` | number | | Width of the image displayed inside the magnifying lens. Set this only if you want to override the large image's native width.
90
-
`magnifiedHeight` | number | | Height of the image displayed inside the magnifying lens. Set this only if you want to override the large image's native height.
91
-
`limitBounds` | boolean | false | Set this to `true` to keep the edge of the image within the magnifying lens.
92
-
`mobileCloseEvent` | string | 'touchstart' | Custom event to fire when you tap on the mobile close button. Set this to `'click'` or `'touchend'` if it's conflicting with another event handler. This option is only applicable when the mobile plugin (jquery.magnify-mobile.js) is used.
93
-
`afterLoad` | function | | Anonymous callback function to execute after magnification is loaded.
`src` | string | '' | URI of the large image that will be shown in the magnifying lens.
85
+
`speed` | number | 100 | Fade-in/out animation speed in ms when the lens moves on/off the image.
86
+
`timeout` | number | -1 | Wait period in ms before hiding the magnifying lens on touch devices. Set to `-1` to disable.
87
+
`touchBottomOffset` | number | 0 | Vertical touch point offset. Set this to something like `90` if you want to avoid your finger getting in the way of the magnifying lens on smartphones and tablets.
88
+
`finalWidth` | number | | Width of the main image. Set this only if the image animates into view and has a different initial width. If the image doesn't animate, then you should set the image width in CSS or via the `width` attribute.
89
+
`finalHeight` | number | | Height of the main image. Set this only if the image animates into view and has a different initial height. If the image doesn't animate, then you should set the image height in CSS or via the `height` attribute.
90
+
`magnifiedWidth` | number | | Width of the image displayed inside the magnifying lens. Set this only if you want to override the large image's native width.
91
+
`magnifiedHeight` | number | | Height of the image displayed inside the magnifying lens. Set this only if you want to override the large image's native height.
92
+
`limitBounds` | boolean | false | Set this to `true` to keep the edge of the image within the magnifying lens.
93
+
`mobileCloseEvent` | string | 'touchstart' | Custom event to fire when you tap on the mobile close button. Set this to `'click'` or `'touchend'` if it's conflicting with another event handler. This option is only applicable when the mobile plugin (jquery.magnify-mobile.js) is used.
94
+
`afterLoad` | function | | Anonymous callback function to execute after magnification is loaded.
94
95
95
96
Options can also be set directly in the `<img>` tag by adding the following data attributes, which will take precedence over the corresponding options set inside an object:
96
97
97
98
-`data-magnify-src` - equivalent to `src`
98
99
-`data-magnify-speed` - equivalent to `speed`
99
100
-`data-magnify-timeout` - equivalent to `timeout`
101
+
-`data-magnify-touchbottomoffset` - equivalent to `touchBottomOffset`
100
102
-`data-magnify-finalwidth` - equivalent to `finalWidth`
101
103
-`data-magnify-finalheight` - equivalent to `finalHeight`
102
104
-`data-magnify-magnifiedwidth` - equivalent to `magnifiedWidth`
0 commit comments