Can I perform animations on the canvas?

No; plugins execute synchronously, so only the final state of the document is visible to the user when the plugin finishes executing.