I'm working on a site and want to display and hide sections of it by adding ".hidden" bootstrap class under click events. Basically:
$('selector').click(function(){
$('*part-to-hide*').addClass("hidden");
$('*part-to-show*').removeClass("hidden");
}
It's working properly but needs some smooth animations. What are my options?
Note: while I'v seen similar questions, I'd consider mine different (and thus not a duplicate) as it centers around the use of the bootstrap "hidden" class. On that note, I'd appreciate it if answers tackle the issue while sticking to the main idea of the code, which is adding and removing the "hidden" class to an element.