Lesson 11 (toggleClass)



What’s the dfference between toggle and toggleClass?


toggle is an animation method that toggles state, whereas toggleClass adds or removes a class in the DOM. A state could be visibility, for instance.


Thank you, Roy!



This topic was automatically closed after 7 days. New replies are no longer allowed.