-1

The following shows the this error...

TypeError: $container.picsLoaded is not a function

How to get around this?

$(function(){

var $container = $('.site');
$(window).load(function(){
    $container.picsLoaded( function(){
        $container.masonry({
        itemSelector : '.box',
        isAnimated : true,
        animationOptions: { duration: 800 }
        }); 
    }); 
}); 

// MouseOver Events
$('.box').hover(function(){
    $('img', this).animate({"opacity": ".8"}, "slow");
    },
function(){
    $('img', this).animate({"opacity": "1"}, "slow");
});

});
Jim Garrison
  • 81,234
  • 19
  • 144
  • 183
Venki
  • 11
  • 4

1 Answers1

1

you are mixing variable name with jquery's $... perhaps you want to give the variable name as only container and then later do $(container).picsLoaded...

Mebin
  • 109
  • 1
  • 2
  • 9