Can anyone tell me what’s wrong with this piece of code?
I can’t seem to make the two functions together work when I call the variable… They do work separately however…
var ficheHandler = {
animateFiche: function(fiche) {
fiche
.css('visibility','visible');
.animate({"opacity" : 1,}, 150, function() {
});
}
}
You have an extraneous
;at the end of.css('visibility','visible');which breaks the statement before.animate.... Remove it and you should be good to go.I would also remove the last
,in{"opacity" : 1,}since that will break on IE 6.