I Love Editor X
CREATED BY
46:52
Creative Text and Video Hover Interaction | Rebuild | Editor X
Creative Text and Video Hover Interaction: Rebuild with Editor X
Hello and welcome to another exciting tutorial on Live Learning with Editor X! 🚀
In today's design challenge, we're going to explore a beautiful and creative text hover interaction that not only changes the text but also switches the background video simultaneously. This effect is quite popular on websites that showcase a portfolio or play with visual storytelling elements.
To recreate this effect, follow along our step-by-step guide as we use Editor X, a fantastic no-code design platform, to build this stunning interaction in no time. But before we get started, don't forget to join our community where you can participate in Monthly NoCode Design Challenges and win amazing prizes. You'll also get access to exclusive learning materials and personalized mentoring to help you elevate your design career.
Let's dive right in and make some magic happen! 🌟
Analyzing the Effect
Here's a quick overview of the effect we're about to create:
- We have a set of text links over a background video.
- When you hover over any text link, it changes to another text.
- At the same time, the background video also switches to a different one.
- In the mobile version, the videos autoplay, as there is no hover effect available.
To achieve this effect, we'll need to use a bit of code at the end. But rest assured, we'll walk you through the entire process to make it as easy as possible. Now, let the fun begin!
Setting Up the Stage
First things first, you'll need to gather some background videos to play with in your design. We recommend using pexels.com for high-quality, free stock videos. For this tutorial, we've chosen four different videos as our examples.
With your videos handy, open up Editor X and lay the groundwork for the amazing interactions we're about to create.
The Text Hover Interaction
You might be wondering how to set up the text hover effect before we tackle the video interaction. Good news! If you master the method for one link, you can easily replicate it for the others.
Here's a step-by-step guide on how to make the text hover work:
1. Create a container for your text links and videos. This allows for better organization and ease of navigation.
2. Inside the container, place your text elements and style them according to your design preference.
3. For each text link, add a hover effect using the Editor X "States" feature. In this case, we want the text link to change its appearance when hovered.
4. Next to each original text, add the corresponding replacement text that should be displayed upon hover.
5. Set the replacement text's initial state to "hidden" using the "Opacity" property in Editor X.
6. Now, add a hover effect to the replacement text. This time, we want it to appear when the mouse is over the original text, so set the "Opacity" property to "visible" during the hover state.
7. Repeat these steps for all of your text links, and you're good to go!
Adding Video Interaction
With the text hover effect in place, it's time to add the magic touch and include the background video interaction. Follow these simple steps to make it happen:
1. Add the first video as your default background within the container.
2. Place the other videos above the default one, making sure they are hidden initially.
3. For each video layer, link it with its corresponding text link using the "ID" feature in Editor X.
4. Here comes the coding part! Add a small JavaScript snippet to the page's code to show the linked video when hovering over the text link. Don't worry, we'll provide you with the script to make your life easier!
5. Check your interactions to make sure everything is running smoothly. If needed, adjust the transition speed between the videos for a seamless experience.
And voilà! Your text and video hover interaction is complete and fully functional.
The Mobile Version
To accommodate mobile devices, we'll need to make a few adjustments since there is no hover effect available. In this case, we'll set the videos to autoplay in a loop:
1. In the mobile version of your Editor X project, ensure that all videos are set to autoplay.
2. Adjust the videos' playback speed and loop settings according to your preference.
3. Test your design on mobile to ensure a smooth and engaging user experience.
With that, your creative text and video hover interaction is all set and ready to captivate your audience on both desktop and mobile devices!
Wrapping Up
Phew! We did it! Now you have a stunning and interactive design element to use in your future Editor X projects. Thanks for joining us on this thrilling design challenge, and we hope you're feeling more inspired and skilled in no-code design.
Before we part ways, we encourage you to join the Live Learning with Editor X community for more exclusive design resources and incredible opportunities, such as Monthly NoCode Design Challenges with fabulous prizes. Plus, you'll get access to personalized mentoring to help you grow your design business and reach great heights in your career.
Stay tuned for more tutorials and design inspiration from our team, and as always, happy no-coding! 🤓