0

Hi,
I am creating a website using a predesigned template.
There is some javascript that enables the user to zoom in on an image. I dont know javascript, and I want to know how to disable the zoom for some images.
This is the link to my site:http://www.suavedesign.net/works.html
Please go to logos- there i want to disable the zoom, but keep it enabled for the images I will put under other tabs in the portfolio.
This is the code for the js:

<script type="text/javascript">
$(document).ready(function(){
portfoliohover();
var $container = $('#isotope_content_wrapper');
$container.isotope({
    filter: '.Bedroom',
    animationOptions: {
     duration: 750,
     easing: 'linear',
     queue: false,
   }
});

$('#nav a').click(function(){
  var selector = $(this).attr('data-filter');
    $container.isotope({ 
    filter: selector,
    animationOptions: {
     duration: 750,
     easing: 'linear',
     queue: false,

   }
  });
  return false;
});

});

// Fancybox for portfolio items
jQuery(document).ready(function(){

    jQuery("a.example6").fancybox({
        'titlePosition'     : 'outside',
        'overlayColor'      : '#000',
        'overlayOpacity'    : 0.9
    }); 
    }); 

function portfoliohover(){
"use strict";
    jQuery(function() {
        // OPACITY OF BUTTON SET TO 0%
jQuery(".portfolio_item img").css("opacity","1");
            // ON MOUSE OVER
        jQuery(".portfolio_item  img").hover(function (){
            // SET OPACITY TO 70%
        jQuery(this).stop().animate({
        opacity:0.5
        }, "slow");
    },

// ON MOUSE OUT
    function (){
    // SET OPACITY BACK TO 50%
    jQuery(this).stop().animate({
    opacity: 1
    }, "slow");
    });
    });}
jQuery(document).ready(function(){
"use strict";
});

</script>

What part of the code do I change to disable the zoom?
Thanks.

Edited by pritaeas: Moved

3
Contributors
2
Replies
8
Views
4 Years
Discussion Span
Last Post by iamthwee
0

Not tested or tried but I would go for setting the duration to be something like 0.

That way you're not bypassing the zoom effect, it's just happening so fast to the eye it looks like it is not zooming/growing.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.