Dynamically building CSS3 animation rules in Dart