I am trying to something like this.
new Effect.Move('moveee', { x: -150}, { afterFinish: function () { console.log(x); } });
But it is not working. Where is the wrong ??
I am trying to something like this.
new Effect.Move('moveee', { x: -150}, { afterFinish: function () { console.log(x); } });
But it is not working. Where is the wrong ??
The
Effect.Movefunction accepts two parameters. You are passing in three. You need to move theafterFinishproperty and value to the second parameter, like so: