If its just an animation you can export it as a mov file then convert to html 5 formats.
You can do some stuff with html5 but it isnt perfect yet.
People are starting to make some cool things with it though already:
https://hacks.mozilla.org/2012/03/browserquest/
https://developer.mozilla.org/en-US/demos/
You can also animate in after effects using multiple layers in 3d space + cameras.