add stroke animation from moedict-webkit with some modifications.