Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

a simple zoom feature

Featured Replies

I know there are many scripts I can download but none so far do what I want.

 

All I am after is...

 

a large image, say 1000x1000 is shown in an img tag with the dimensions 100x100, when you click on the image the image resizes to it's maximum size and the part of the image that you clicked on to zoom is in the centre.

 

Very much like the standard zoom feature in browsers like this

 

http://i.imgur.com/Jqmsl.jpg

 

So far I am loading the <img> with max-height: 90% set in the css, then using jQuery on click I am removing the max-height so that the image changes to it's full size which is working fine, I just don't know how to make the area of the picture that I click take the focus...

 

http://www.delvedeeper.co/2012/i.imgur.com/360

 

If someone knows how to do this, or knows a script that will do this that would be awesome!!!

Edited by adamsmith

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.