Depends on what you're doing. CSS offers some animation support. There are also JavaScript libraries for 2d and 3d animation you can use. The HTML canvas element supports animations. There's also WebGL, which is usually used by the aforementioned libraries. There's a lot of options, really. Flash is probably not one of the better ones though.