Code Snippets Similar to "Animate Function":