Image not visible in magnified preview in website - javascript

I added a Image Zoom in my website using the following instruction: https://www.w3schools.com/howto/howto_js_image_zoom.asp
But after adding that image not visible in zoomed box while mouse over the image.Its appear blank inside.
Thanks

Related

How to get a pop-up text link to show under a lightbox image slider and change with every slide?

I am currently working on my portfolio site where I have an image slider appearing as a Lightbox when the visitor clicks an image on the page.
When open, the Lightbox slider is supposed to show:
An image counter in the bottom right hand corner
An image caption in the middle
A credit text in the bottom left corner that opens a pop-up window within the page showing the team credits for a certain project/image.
I have managed to get the image counter and image caption to appear correctly, but I am struggling with getting a clickable text that says ‘Credits’ to show on the bottom left that opens a pop-up window with the team credits related to the current selected image in the Lightbox slider.
I have tried to use the Alt Text to display the Credit text in the bottom left corner through Javascript and CSS but without any luck so far.
Here’s what I’m trying to achieve.
The Lightbox slider has a Credits text that the visitor can click and that changes with every image:
Image Lightbox Slider
When the credits text is being clicked, a pop-up with the team credits should appear within the same window. Like this:
Lightbox Image Credits - Pop up
Is there any simple way of doing this with javascript and css?
Here's a link to the website to view it live
Thank you in advance!

Panorama 360 degrees viewer with thumbnail slider to click and select dynamic images for previewing in 360 degrees panaromic viewer

I have used http://mrdoob.github.com/three.js/examples/webgl_panorama_equirectangular.html for panoramic view. But i need to place a slider. By which when I click an image from the slider, the panorama image must be replaced with the current selected image and the panorama 360 degree must apply to the image.
I can't show the website where I found such example, as there is no direct link. Below is an image to show example
As seen in the image. There is a thumbnail image from which images are selected dynamically on click. Then the selected image is displayed in the preview which is a panorama slider. Is there any slider for this functionality. Please post the link.

dragging image with transparent background

I use kineticjs example from this page http://www.html5canvastutorials.com/labs/html5-canvas-animals-on-the-beach-game-with-kineticjs/.
Everything works fine- i can move, drag image (kinetic.image) etc. The problem is when i press cursor on transparent area of image, dragging doesn't work then. What to do to make image draggable irrespective of that i press cursor on drawed region or transparent background of this image?
Try removing lines 121 and 122. The page is loading a script that is not being shown that changes the dragable region to the non-transparent parts. For more info look here
Lines to remove:
animal.cache();
animal.drawHitFromCache();

Display a grid over a blurry background image, and on click of a square in grid change to non blurry background image

I have been trying to create a grid over a blurry background image which when clicked displays the non-blurry background image.
So far I have been able to display a grid over a blurry background image. The squares within the grid have a hover effect on them which changes their opacity. What I need it to do now is on click of any of the squares, the non-blurry version of the background image is shown, but only within the chosen square. Is this even possible with css? Your help would be greatly appreciated.
The below is the link to where you can see the project. You might need to click load script if you are using chrome.
https://www.theppcpresents.com/test/new/index.html
Thanks in advance for your help

html5 css3 glass effect with refraction

Is it possible to show glass effect with 'refraction' using html, css, javascript?
I have an html div "pop up" styled in css (eg: background:rgba(255,255,255,0.5)) to appear transparent. I want portion of the html page underneath the pop up to appear distorted due to refraction. No images are used in foreground or background of the pop up. The underlying html page is dynamic and can have images.
If your background is a canvas, you could use caustics to create a refracted image the size and position of your popup. see http://www.klayge.org/material/3_12/Caustics/fastcaustics.pdf
Here is a nice demo of caustics using canvas.

Categories