![]() I’m a senior UI/UX designer and front-end developer at Zeal, a software consultancy in Southern Oregon. For people who aren’t familiar with your work, could you give us a little background?Īmy: Yeah, sure. ![]() But before we talk about that, I want to talk about you. I’m super excited to do the work we’re going to do. Jason: I’m super excited to have you on the show. Thank you so much for being here today.Īmy: Yeah, thanks for having me. And welcome to another episode of Learn With Jason. Communication Access Realtime Translation (CART) is provided in order to facilitate communication accessibility and may not be a totally verbatim record of the proceedings. Start off by adding the following import statement to the top of pages/index.Full Transcript Click to expand the full transcriptĬaptions provided by White Coat Captioning ( ). Particularly, we’re going to configure Framer Motion to make the title fade in and grow when the page first loads.įirst things first, we need to import Motion into our app. To get started, we’re going to animate the page title in our wiki app. Once you have the app running locally, you can install it with: yarn add framer-motionĪnd at this point you can start back up your development server and we’ll be ready to go! Starting point - Rick and Morty wiki app in Next.jsįollow along with the commit! Step 1: Animating the page title with Framer Motion in a Next.js app Since we’re going to use Framer Motion to provide our animation features, the first thing we want to do is install it! Step 0: Installing Framer Motion in your Next.js app Otherwise, you should be able to follow along most of this with any React app. While you can follow along without walking through the first one, it might be helpful to have a place to start from. How to Create a Dynamic Rick and Morty Wiki Web App with Next.js The first part focuses on requesting the data from the Rick and Morty API and creating dynamic pages. This is the second part of series of articles walking through building a Rick and Morty wiki. We’ll start off with some basic animations that happen when the page load, learn how to trigger them on hover, and build out a wrapper that allows us to gracefully transition our pages in Next.js. We’re going to use the concepts of Framer Motion to add interaction and page transition effects to our app. ![]() The Motion API stems from that work, but is conveniently available as a separate package that we can use for animation control. What is Framer? Framer itself is a UI prototyping tool that allows you to create interactive interfaces with animations that you can hand off to your team, while the Framer API is a Javascript library that lets you do that with code. It provides ready-to-go animations and gesture controls that makes it easy to create dynamic effects. Bonus Step: Getting a little weird with animations in our Next.js Rick and Morty appįramer Motion is an API that comes straight from the Framer API.Step 4: Using Framer Motion keyframes for advanced animations.Step 3: Adding page transitions with Framer Motion to a Next.js app.Step 2: Adding animated hover effects with Framer Motion to elements in a Next.js app.Step 1: Animating the page title with Framer Motion in a Next.js app.Step 0: Installing Framer Motion in your Next.js app.How can we use Framer Motion to add some animations to our web apps and provide a more interactive experience? But just because those apps are static, it doesn't mean they have to be boring. The web is vast and it's full of static websites and apps.
0 Comments
Leave a Reply. |