Insert animation rules dynamically