Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #978012

    Hi all,
    is it possible to have an SVG file ‘zoom’ as/per a regular image in the Enfold Mason Gallery?

    #978471

    Anyone?

    #978614

    Hi,

    Have you tried to upload an image?

    Best regards,
    Basilis

    #978824

    Hi,
    images work fine – but SVG’s don’t zoom.

    Example of working images here: https://highgrounddesign.co.uk/hd/brochure-design-portfolio/

    Example of non-working SVG’s here: https://highgrounddesign.co.uk/hd/logo-design-portfolio/

    I just wondered if the SVG’s could be zoomed?

    #979980

    Hi,

    Thanks for the update.

    Did you remove the svg images? I can’t find them in the page.

    Best regards,
    Ismael

    #980066

    Hi, yes I did – I gave up in the end.

    #980385

    Hi,

    I see. Would you mind creating a test page so that we can inspect the issue?

    Best regards,
    Ismael

    #980486

    Sure, I’ve created this page, the picture on the left zooms, the picture on the right (the SVG) doesn’t :

    #980844

    Hi,

    The svg image zooms in on hover just like the regular image on the left. Where are you testing this? I’m on Chrome Windows 8.

    Best regards,
    Ismael

    #981144

    Hi, zoom as in when clicked.

    If you click the picture file that presents a zoomed picture (modal box picture zoom in essence), the SVG loads the file and seems to ignore the conditions?

    #981538

    Hi,

    I see. The MagnificPopup script doesn’t support svg files, unfortunately.

    // https://github.com/dimsemenov/Magnific-Popup/issues/670

    You can try and modify the js > avia-snippet-lightbox.js file. Look for this code around line 131:

    autolinkElements:   'a.lightbox, a[rel^="prettyPhoto"], a[rel^="lightbox"], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href*=".jpg?"], a[href*=".png?"], a[href*=".gif?"], a[href*=".jpeg?"], a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="youtube.com/watch"] , a[href*="screenr.com"], a[href*="iframe=true"]',
    

    Add an svg support. I’m not sure if it’s going to work though because the parent script doesn’t seem to accept svg by default.

    autolinkElements:   'a.lightbox, a[rel^="prettyPhoto"], a[rel^="lightbox"], a[href$=svg], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href*=".jpg?"], a[href*=".png?"], a[href*=".gif?"], a[href*=".jpeg?"], a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="youtube.com/watch"] , a[href*="screenr.com"], a[href*="iframe=true"]',
    

    Best regards,
    Ismael

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.