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.

Display CSS issue with EllevateZoom js

Featured Replies

Hi All,

 

I have a strange problem with some CSS in relation to the EllevateZoom jQuery plugin.

 

You can see the problem on this page: http://tlt.voltronik.co.uk/downloads/canary-wharf-d/

 

When the 'Play' option is selected below the video, the user can watch the video and when the Zoom option is selected, the user can zoom into a still of the video. The problem is, when the play option is selected, the zoom window appears when hovering over the top left of the viewport. When the preview option is selected, the zoom window appears where it should (to the right of the image).

 

I've narrowed down the issue to setting display: none; or display: block; to the div containing the image. This is necessary to show and hide the relevant div when the navigation option (play or zoom) is selected below. I however, cannot seem to fix it no matter what I try.

 

Can anyone offer any help or solutions as to how to overcome this?

 

Thanks for any help in advance,

Jack

  • 2 weeks later...
  • Author

I managed to solve this on my own in the end.

I added display: none; to the zoom container that the js creates and then explicitly tell it not to display: block; unless certain conditions are met in the js.

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.