How to create hover interactions on Repeater items | Editor X
How to Create Hover Interactions on Repeater Items | Editor X
Hey there, fellow design enthusiasts! I'm Ido, a technical designer on the Editor X team, and today I'm thrilled to take you on a journey into the world of hover interactions. This tutorial is all about creating a super cool interaction that reveals a card when you hover over repeater items. So, if you're ready to delve into some design magic, grab a cup of coffee, and let's dive in!
The Magic of Hover Interactions
Hover interactions are like the cherries on top of your design sundae. They add that extra layer of dynamic engagement that takes a website from static to wow! Whether you're a web design newbie or a seasoned pro, mastering these little details can make a big difference. So, let's break it down and get hands-on with Editor X, creating a non-static, fun, and responsive design.
Setting the Stage: The Basic Layout
First, let's set up our stage. We're starting with a section that has some padding on all sides. From here, we'll create a lovely grid with two rows and two columns. If you're aiming for a pixel-perfect design, you'll want to switch over to advanced mode to tweak everything to your heart's desire.
1. Grid Setup: Set the left column's width to 1087 pixels initially for perfect pixel alignment. Then, convert this into fractional units (fr) which are fluid and will ensure your layout is responsive across all devices.
2. Adjusting Row Heights: Height is also crucial, and here, we want the first row at 2.5 viewport width (vw) and the second row at 14.3 vw.
With this, our grid settings are all ready to rock!
Bring in the Repeater
Now it's time to add a repeater—a fantastic tool that replicates your design effortlessly. Place it in the bottom left grid cell and select a list layout. This setup allows each item to shine without collapsing, which initially will be achieved by setting a minimum height of 86 pixels.
1. Repeater Customizations: Stretch it to fill the whole grid cell, ditch the background color, and let your design elements do the talking!
2. Adding Elements: Introduce a horizontal line at the bottom of each item and stretch it. Then, sprinkle in a container, stretch that, and apply a grid of three columns to get started.
Designing Our Hover Container
It's time to add the container that will magically appear during our hover interaction. This is where the fun begins!
1. Container Details: Set its width to a fluid unit and height to 348 pixels, with no minimum height. Add a comfortable padding of 6.5% on all sides, and organize it with a two-row grid layout.
2. Adding the Fun Bits: Drag an image into the top grid and stretch it to fill the space. Include text in the bottom cell, scale the text size between 12 to 16, and set width to max content.
Styling and Final Touches
A design is only complete when it looks just right. Round the corners of both the container and image with a 12-pixel radius for a smooth finish. This ensures your design is not only functional but aesthetically pleasing too.
Don't forget to set your container to a fluid height and make sure it's responsive over different devices. With these tweaks, your design is almost ready!
Time for the Main Event: The Hover Interaction
This is where the magic happens. Setting an interaction that triggers the reveal when you hover over the items.
1. Creating the Hover Effect: Go to the inspector panel, click on interactions, and choose a custom effect. Set the image to rotate 5 degrees upon hover for a dynamic touch.
2. Initial State Setup: Set your container's opacity to zero initially. This ensures it appears seamlessly when you hover.
3. Bring It to Life: Attach the hover container to your repeater item and preview the preview magic unfold!
Get Creative with Content
You're almost there! The last step is diversifying the content of these cards. Use the layers panel to change the text and images for each card uniquely.
And there you have it, folks! A nifty hover interaction that brings a unique touch to your repeater items. Try it out, and let your creativity flow.
Join Us at NewForm
But wait—are you hungry for more? If you're passionate about honing your design skills and diving into the world of web design, then NewForm is your go-to community. At NewForm, we're all about empowering designers like you with monthly challenges, skill-building events, and exclusive guest sessions. Whether you're learning from top professionals, accessing invaluable resources, or simply building cool things, NewForm is where it all comes together.
So, what are you waiting for? Join NewForm today and take your skills to new heights with a community of like-minded creatives. Keep designing, keep innovating, and we'll see you next time for more design adventures!
Catch you in the next post, and don't forget—design is not just what it looks like and feels like. Design is how it works!
---
For more insights, resources, and design magic, make sure to visit us at NewForm Community. Let's create something extraordinary, together.