Script for animations with the toggle menu and adding side nav and sub Side nav