top of page
Zoom-In Effect

Zoom-In Effect

Add a hover animation to repeater items

Intermediate.png

Beginner

5K

Published:

December 27, 2020

Anchor 1
Hire a Developer

Example Description

In this example, site visitors can create a zoom in effect by hovering over images in a repeater. This example is a great starting point for working with the Animations API.

Example Code

Tab 1

.

Tab 2

.

Tab 3

.

This code solution can be complicated.

How We Built It

 

Database Collection


  • Pictures: For storing the images displayed in the repeater.

 

Data Connection


  • Pictures dataset: For connecting the repeater to the images in the database collection.

 

Page Elements


I used the following page elements on the site:

  • Repeater: For displaying the images.

  • Image: Displays the images from the database collection in each repeater item.

 

Code


I added the following code to the site:

  1. Import functionality for working with animations.

  2. When the repeater items are ready to load, do the following:

  3. When a site visitor hovers over an image, add a scale (zoom in) animation to the timeline and play the timeline.

  4. When a site visitor moves away from the image, add a reset scale (zoom out) animation to the timeline and play the timeline.

APIs We Used

Non-code example.

Non-code example.

Non-code example.

Related Articles

Hire a Developer

Velo solutions are powerful tools, but building them on your own can be challenging. Let an experienced Velo development shop build it for you, so you can keep working on your site or business.

Related Examples

Did this help?

Yes

|

No

Thanks for your feedback!

Animations Viewer

Animations Viewer

Use show/hide effects to change the animation applied to an image.

Intermediate.png

Intermediate

Image and Text Animation

Image and Text Animation

Use wix-animations API to animate images and text.

Intermediate.png

Intermediate

Hide & Show Elements

Hide & Show Elements

Hide and show elements in response to user interactions.

Intermediate.png

Intermediate

Anchor 2
bottom of page