How can you make this transition when you click on the buttons (catalog 2018 and catalog 2020)?

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!