💡 Learning from this project?
📌 Remove & add the class at the same event.
📌 Expanding and collapsing logic
📌 Remove & add the class at the same event.
📌 Expanding and collapsing logic
📌 Expanding and collapsing logic
→ Just we have to increase the width of the card or box using JavaScript.
→ For example we can increase the width of the box from 100px to 500px using JavaScript.
→ Just we have to increase the width of the card or box using JavaScript.
→ For example we can increase the width of the box from 100px to 500px using JavaScript.
→ In the CSS code, we have to add a class that is an "active" class.
→ This class is responsible for expanding and collapsing the card.
→ If this class is applied to an element then the element will expand otherwise collapse.
→ This class is responsible for expanding and collapsing the card.
→ If this class is applied to an element then the element will expand otherwise collapse.
👀 Codepen link:
codepen.io
codepen.io
That's all for now, we will meet in the next thread😍
But if you like make sure to:
1. Follow me @ATechAjay
2. Retweet the first tweet.
3. Turn on the notification to never miss these amazing tweets.
Thank you so much for staying to the end of this thread.
But if you like make sure to:
1. Follow me @ATechAjay
2. Retweet the first tweet.
3. Turn on the notification to never miss these amazing tweets.
Thank you so much for staying to the end of this thread.
Loading suggestions...