F
F
fastovvlad2018-02-04 22:37:30
JavaScript
fastovvlad, 2018-02-04 22:37:30

How to zoom in on a website photo with javascript?

I have a gallery on the site, I need to enlarge the photo on click so that it is displayed in the center of the page, with a darkened background, preferably with a smooth appearance.
Already set an approximate script, but there are too many brakes when animating the image

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anar, 2018-02-04
@fastovvlad

What's the point of writing it yourself? There are a myriad of libraries, the most obvious one is fancybox It
makes sense to write it yourself as an experience (training), but then your questions should be more specific.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question