Code snippets related to Snippets related to Animated on off switch with green and red light