Hanzi Writer is a free and open-source javascript library for both animating simplified Chinese characters and quizzing users on character stroke order.
For more info and instructions for getting started with HanziWriter check out https://chanind.github.io/hanzi-writer/