Editor X: Adding a Preset Interaction

5 min read
Editor X is transitioning to Wix Studio, our new platform for agencies and freelancers.Learn more about Wix Studio
Add Interactions to create an animated experience as visitors click or hover over elements. Need a quick and easy animation? Use one of our presets (e.g. Grow, Move, Fade) and tweak it to your liking. 
The interaction can animate the same element that visitors click or hover on, or a different element on the page. Either way, you have full control of the look, feel and timing so it's truly effective. 
GIF showing how interactions look on a live site.

Step 1 | Add a trigger (Click or Hover)

To get started, select the element that triggers the interaction. This is the element that your visitors hover over or click before seeing the animation. Then, go to the Interactions tab in the Inspector panel to add your new interaction. 
You can add multiple interactions to an element so it triggers a different animation on hover or click.

To add a trigger:

  1. Select the element that should trigger the interaction.
  2. Click the Inspector icon at the top of Editor X.
  3. (In the Inspector) Click the Interactions tab .
  4. Click + Add under Hover / Click
A screenshot of the Interactions tab in the Inspector panel, where you can add a new interaction

Step 2 | Set up your interaction

After choosing an element and trigger, set up the interaction. Select a pre-designed animation, the element that should show it and what exactly happens on hover or click.
The available animations vary, based on the element you select.

To set up your interaction:

  1. (In the Interaction Setup panel) Choose what happens On Hover / On Click:
    • Start Animation: Clicking / Hovering over the element triggers the chosen animation.
    • Reset Animation: Clicking / Hovering over the element removes any animation that was previously applied.
    • Toggle On/Off: Clicking the element triggers the animation and a second click removes it.
      Note: This option is only available for click interactions.
  2. Select the Animated element:
    • Make the element trigger its own animation: Click the element's name (the word (self) appears next to it).
    • Animate a different element on the page: Select an element from the drop-down, or click Choose on Canvas to select it on the page.
      Tip: Hold the Cmd / Ctrl key to select a child element.
  3. Select an animation:
    1. Click the Presets tab. 
    2. Choose an animation from the list.
A screenshot of the Interaction Setup in the Inspector, selecting a preset animation
When setting an element to show on click or hover, it appears with a checkered overlay on the canvas. This is to indicate that the element is initially transparent. 
A button set to appear on hover, appearing with a checkered overlay on the canvas in Editor X
You can turn this indication off at any time. Click View on the top bar, then click Transparent Elements.

Step 3 | (Optional) Adjust the animation

After choosing the animation you want, customize it to achieve the desired effect. You can control settings like the duration, delay and ease to make the animation really effective. 

To adjust the animation:

  1. (In the Inspector) Click Adjust Animation at the bottom.
  2. Customize the available settings to your liking:
    • Delay: Drag the slider to add a delay (in seconds) before the animation starts.
    • Duration: Drag the slider to set the duration of the animation (in seconds).
    • Easing: Choose how the animation eases in and out from the drop-down.
    • Scale: Choose how much your element grows or shrinks. 
    • Angle: Change the angle of movement. 
    • Distance: Make your element move farther from, or closer to, its default position on the page.
    • Direction: Change the direction your element rotates in.
  3. (Optional) Click Preview to see how your animation looks and make adjustments, if needed. 
The available settings depend on the preset animation you choose.
A screenshot of the Inspector panel, adjusting the settings of a preset animation
What's next?


Click below to learn more about creating interactions. 

Did this help?