transition from one button to another

I want this effect but I am confuse how to achieve this? Do I need a separate div and then align the position? Here is the codepen link https://codepen.io/mozi47/pen/MWXQgbw
1 Reply
Myndi
Myndi3y ago
I think of a way, perhaps using translate. Having an ::after element with the background's color, and translate: 0 -100%. On click a JS function to add the active class (or whatever/similar class). And with a transition.
Want results from more Discord servers?
Add your server