Share my opinion to toggle feature such as toggleCard() and toggleBtn. I provide a better way using such as setShowCardContentBy() or setShowCardContentTo() to create it. It will be useful at scenarios about pages, which are companied with this kind feature, grow with more features or elegant user experiences. It’s welcome to share it and used in your daily work. In many tutorials, it’s common to see an example about toggle
read more