Render animated function