Creating transparent video from transparent png files using ffmpeg
You have to specify the pixel format, to force it to include the alpha channel, using the -pix_fmt option. You don't need to use png as your video codec either.
ffmpeg -i anim.%04d.png -r 30  -pix_fmt yuva420p video.webm