Is there a way to make a hover animation on Webflow clickable on mobile, where the first tap reveals the text and the second tap triggers the link to a new tab?

Published on
September 22, 2023

Yes, it is possible to create a hover animation on Webflow that is clickable on mobile devices by using interactions. By combining interactions with the "Tap" trigger, you can achieve the desired behavior where the first tap reveals the text and the second tap triggers the link to a new tab. Here's how you can do it:

  1. Create a Div Block or any other container element that will contain your hover animation.
  2. Inside the container, add the content you want to reveal on hover. For example, you can add a Text Block or an Image.
  3. Select the container element and go to the Interactions panel. Click on the + New Interaction button.
  4. Choose the element(s) you want to trigger the interaction. In this case, you can select the container element itself.
  5. Choose the Tap trigger under "Start an Animation".
  6. By default, Webflow will automatically create an animation called "Tap A" for you. Rename it to something meaningful, like "Hover Animation".
  7. Define the desired animation for the first tap, which reveals the content. You can use the built-in animation tools to animate properties like opacity, scale, or position.
  8. In the Animation panel, click on the + button next to "Affect different element" to add an interaction for the content that you want to reveal.
  9. Choose the content element, for example, the Text Block, and define an animation for it as well. This animation can reverse the effect of the first tap animation, bringing the content back to its original state.
  10. Finally, to trigger the link to a new tab on the second tap, you'll need to add a custom attribute to the container element. Select the container element, go to the Settings panel, and click on "+ Add Field". Name the attribute "onClick" and set its value to "window.open('https://example.com', '_blank')". Replace "https://example.com" with the actual URL you want to open.

Now, when a user taps on the container element on a mobile device, the first tap will trigger the hover animation and reveal the content. The second tap will trigger the link and open the specified URL in a new tab.

Please note: While this approach can provide the desired functionality, it's important to consider the user experience on mobile devices. Clickable hover animations can sometimes lead to confusion or accidental taps, so it's recommended to use this technique sparingly and test it thoroughly on different devices.


Additional questions that users may use to search for this answer:

  1. How to create clickable hover animations on Webflow mobile?
  2. Can I make a hover animation clickable on mobile in Webflow?
  3. What's the best way to trigger a link on the second tap after a hover animation on Webflow mobile?