I have been working on a website for the past two days. There are many tab switching effects on the same page. I have tried ul>li and input[type=radio], but the effect is not good and can only be used once. Problems may arise after repeated use. Excuse me, is there anyone who can provide information on this? Thank you so much!
I'm so worried! ! !
Maybe you need this
http://v3.bootcss.com/javascr...
You can use plugins. Let me talk about the principle. In fact, you have to treat this function as an object, then put the interaction into the object, and new a new object each time, so as to ensure its uniqueness.
I will introduce my own method: https://jsfiddle.net/8965vvz5/1/