top of page
LOGO
SendZoomFree Demo

How Do I Add Flip Effect In Repeater

Writer: CD Studio .
CD Studio .
Nov 22, 2023
2 min read

Updated: Dec 7, 2023

Have you ever wanted to enhance the visual appeal of your Wix website by incorporating dynamic and eye-catching animations? Adding a flip effect to elements within a repeater can be a fantastic way to achieve just that! In this tutorial, we'll guide you through the process of creating a captivating flip effect within a Wix repeater, giving your content a modern and interactive touch.

Prerequisite:

Before you start this tutorial, you need to create a Wix site and design a repeater

Step1: Add and design repeater












Add a Container box and place two text boxes inside it.






Now your repeater should be looking like this




Now add image, here the image is added on top of the container, hiding the text container box




Resize the images exactly as the size of container (repeater item)






Step 2: Turn On Developer Mode

To configure the buttons, we need to enable "Dev Mode" in order to write a few lines of simple code.



On the top left of the window hover over Dev mode.

Then click on Turn on Developer Mode

Following better coding standards, it is good to rename the 'id' of the elements, in this case, our elements are




container: #container1

container Box(Text box): #box1

image:#image2


On the left side of where you renamed the id, you can see the code panel. This is where we are going to write the code.

$w.onReady(function () {
    const flipOptions = { "duration": 400, "delay": 0 };

    function flipElements(event, hideImage) {
        const $item = $w.at(event.context);
        $item("#image2")[hideImage ? 'hide' : 'show']("flip", flipOptions);
        $item("#box1")[hideImage ? 'show' : 'hide']("flip", flipOptions);
    }

    $w("#container1").onMouseIn(event => flipElements(event, true));
    $w("#container1").onMouseOut(event => flipElements(event, false));
});

On the top right side, click on "Preview" to see if your code is working. If it is working, then you can publish.




4 Comments


KevinColeman
4 days ago

https://sofortcasinos.com is where I usually notice how a tiny animation can make or break the overall experience, so your explanation of using a container box and two text boxes as the flip base really clicked for me. I also liked that you showed the exact resizing step for the image—without matching the container size, the effect would probably look off. It’s a small detail, but it makes the whole interaction feel polished.

Like

Роман Грицюк
Sep 21

Коли хочеться знайти практичний матеріал без довгого пошуку, іноді починаю зі сторінки, де можна зустріти теми про дім і найрізноманітніші щоденні справи. Після цього для сучаснішого цифрового читання можу перейти на ресурс, присвячений зокрема техніці та новим сервісам. Якщо більше цікавлять здоров’я, догляд або стосунки, заглядаю сюди, а домашні й садові теми додатково переглядаю на сайті, де теж багато матеріалів для звичайного життя.

Like

Lifehata
Sep 06

Для поиска практических советов и доступных объяснений подойдет https://lifehata.com.ua/ru/, где можно найти публикации на самые разные жизненные темы. Такой формат удобен для тех, кто предпочитает получать полезную информацию без лишней сложности.

Like

Infosaray
Sep 05

Якщо подобаються ресурси з широкою тематикою, можна переглянути цей сайт. Тут трапляються матеріали, які допомагають розібратися у конкретному питанні, а також статті для загального розвитку. Інформація подається у доступній формі.

Like
bottom of page