demo to use dynamic animations