Saw this lesson in the Joy of React course by Josh Comeau and I want to replicate it with Tailwind.
The animation is still in Framer Motion. The goal is to use this Codesandbox as a quick playground to explore Framer Motion. What I replicated in Tailwind is only the boilerplate, which is the big yellow button and the button with its background blur. Looks good so far!
I want to create a demo for a Tailwind button that shows up with transition. It's a scroll-to-bottom button that will show up when the page is not at the bottom.
1. Add `transition` class to the button. 2. Add `opacity-0 translate-y-1` when the page moves to the bottom. This will produce a fade-out-down transition. 3. Add `opacity-100` when the page moves up. This will produce a fade-in-up transition because it alternates from opacity-0 to opacity-100 and translate-y-1 to translate-none (original position).