# Hover Effect on Images in Repeater

**URL:** <https://forum.wixstudio.com/t/hover-effect-on-images-in-repeater/36536>\
**Category:** Show and tell\
**Tags:** tips, code\
**Created:** [September 16, 2020, 4:31am UTC](https://forum.wixstudio.com/t/hover-effect-on-images-in-repeater/36536 "2020-09-16T04:31:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajithkrr](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/ajithkrr/32/20520_2.png) [@ajithkrr](https://forum.wixstudio.com/u/ajithkrr)\
**Post date:** [September 16, 2020, 4:31am UTC](https://forum.wixstudio.com/t/hover-effect-on-images-in-repeater/36536/1 "2020-09-16T04:31:19Z")

</div>

Hi everyone,  
I think, this will be useful for some or many!!!

I am sharing a code I got while searching and with some modifications…  
Here’s what I am sharing with you, all, today …

When the mouse pointer enters the container the image will start the effect!!!

For this →

#dataset1 - dataset  
#repeater1 - repeater connected to dataset1  
#container1 - container in the repeater  
#image1 - image for the effect

```javascript
import { timeline } from 'wix-animations';

$w.onReady(function () {
    $w('#dataset1').onReady(() => {
        $w('#repeater1').forEachItem(($item, itemData, index) => {
            $item('#container1').onMouseIn((event) => {
                timeline()
                    .add($item('#image1'), { y: 4, x: 4, scale: 1.40, duration: 600, easing: 'easeOutCirc' })
                    .play()
            });

            $item('#container1').onMouseOut((event) => {
 const reset = { y: 0, x: 0, scale: 1, duration: 600, easing: 'easeOutCirc' };

                timeline()
                    .add($item('#image1'), reset)
                    .play()
            })

        });
    });

});

```

Instead of ‘easeOutCirc’ you can use many …  
from here → [easeOutCirc constant - Curves class - animation library - Dart API](https://api.flutter.dev/flutter/animation/Curves/easeOutCirc-constant.html)

Hope, this will be useful !!!

---

<div class="post-metadata">

**Author:** ![av-promotional](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/av-promotional/32/2796_2.png) [@av-promotional](https://forum.wixstudio.com/u/av-promotional)\
**Post date:** [September 16, 2020, 12:07pm UTC](https://forum.wixstudio.com/t/hover-effect-on-images-in-repeater/36536/2 "2020-09-16T12:07:08Z")

</div>

a big thanks!!!

---

<div class="post-metadata">

**Author:** ![ademontis](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/ademontis/32/23012_2.png) [@ademontis](https://forum.wixstudio.com/u/ademontis)\
**Post date:** [November 4, 2020, 9:38am UTC](https://forum.wixstudio.com/t/hover-effect-on-images-in-repeater/36536/3 "2020-11-04T09:38:16Z")

</div>

Great job, i love it Thank you for sharing.

---

<div class="post-metadata">

**Author:** ![syifaaumairah944](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/syifaaumairah944/32/26140_2.png) [@syifaaumairah944](https://forum.wixstudio.com/u/syifaaumairah944)\
**Post date:** [January 15, 2021, 3:58am UTC](https://forum.wixstudio.com/t/hover-effect-on-images-in-repeater/36536/4 "2021-01-15T03:58:15Z")

</div>

helpp it doesnt work on mine

---

<div class="post-metadata">

**Author:** ![batunorbi](https://avatars.discourse-cdn.com/v4/letter/b/bbe5ce/32.png) [@batunorbi](https://forum.wixstudio.com/u/batunorbi)\
**Post date:** [March 10, 2021, 5:23pm UTC](https://forum.wixstudio.com/t/hover-effect-on-images-in-repeater/36536/5 "2021-03-10T17:23:27Z")

</div>

Hey! I might need some help. Can i make this effect on a simple hover box and not on a repeater?

---

<div class="post-metadata">

**Author:** ![musitti666](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/musitti666/32/31834_2.png) [@musitti666](https://forum.wixstudio.com/u/musitti666)\
**Post date:** [January 21, 2022, 9:54am UTC](https://forum.wixstudio.com/t/hover-effect-on-images-in-repeater/36536/6 "2022-01-21T09:54:29Z")

</div>

Exucuse me, can you make a video how to make this, where need to put this code and e.t.c. I’m a new and really want to learn how to create my own website. Thank you!

---

<div class="post-metadata">

**Author:** ![kathy-lecocq](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/kathy-lecocq/32/33774_2.png) [@kathy-lecocq](https://forum.wixstudio.com/u/kathy-lecocq)\
**Post date:** [June 17, 2022, 3:26pm UTC](https://forum.wixstudio.com/t/hover-effect-on-images-in-repeater/36536/7 "2022-06-17T15:26:58Z")

</div>

Super, thanks a lot 😉

---

<div class="post-metadata">

**Author:** ![robbiektc](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/robbiektc/32/35460_2.png) [@robbiektc](https://forum.wixstudio.com/u/robbiektc)\
**Post date:** [November 4, 2022, 9:58am UTC](https://forum.wixstudio.com/t/hover-effect-on-images-in-repeater/36536/8 "2022-11-04T09:58:00Z")

</div>

@ajithkrr This is great! Do you have any advice on how to make this work when the images are connected via a dataset from a collection?

---

<div class="post-metadata">

**Author:** ![robbiektc](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/robbiektc/32/35460_2.png) [@robbiektc](https://forum.wixstudio.com/u/robbiektc)\
**Post date:** [November 4, 2022, 11:12am UTC](https://forum.wixstudio.com/t/hover-effect-on-images-in-repeater/36536/9 "2022-11-04T11:12:30Z")

</div>

Actually never mind, still works using #image1 ID 😅
