T
T
tigra2015-12-14 12:53:39
JavaScript
tigra, 2015-12-14 12:53:39

How to expand a photo to full screen?

How to enlarge a photo to its natural size?

$('img').fancybox();
Fancybox, when clicked, opens a photo of the same size in a window.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Ineshin, 2015-12-14
@IonDen

You must provide the plugin with some initial data. Namely, a link to a large photo. It usually looks like this:
$(".gallery").fancybox();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question