How is Japanese anime processed?

some animes are drawn by hand then scanned into the computer for editing and putting some details, some are drawn in the computer, then they animate it, just like several pieces of paper that are flipped thouroghly (i think)