Compress folder of folders to separate files

Sometimes it is handy to be able to zip a folder to separate files.

for i in */; do zip -r "${i%/}.zip" "$i"; done

It works great for folders of mysqldumps.