Reputation: 93
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() {
});
}
}
Upvotes: 0
Views: 52
Reputation: 120496
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.
Upvotes: 6