I have a client — a microbrewery — that is planning a fundraising campaign.
Ideally, they would like to display the donation progress using a bottle graphic that fills up as donations come in.
Unfortunately, I haven’t been able to replicate this effect successfully.
I then tried using the “Progress Bar,” but the animation only works from left to right or right to left. However, it would need to animate from bottom to top.
Is there any way to rotate the box via code?
Or do you have any suggestions on how I could recreate this effect using Velo code?
I am working with Wix Studio.
There are a lot of possible solutions for your problem.
I will mention2…
You can generate it with the usage of your repeater.
Let’s say you generate a dATABASE including 1000-items, giving each item an INDEX-ID
like → 1,2,3,4,5,6,7,8,9,…999,1000. You will call that FIELD → INDEX.
Now you add a second column, calling it → PICS, where you will put an image of a
bottle, but not the whole bottle instead you put to index-1 → a pic of 1/1000 of your
bottle. Into second —> 2/10000, into third → 3/1000.
(So hast du dann jeweils 1 tausendstel deiner Flasche abgebildet.)
Running this trough a REPEATER with a speed of 1 sec per image-switch, you would see how your bottle grows up, or fills up, accordingly to the images you put into the database.
This was the very very easy way for none-coders.
The second way would be → grab the HTML-Component and place it onto your page…
a) Adding the following code into it…
b) SAVING the HTML-setup.
c) Publishing your website.
d) Open your pubblished website and take a look onto your result.
This is just an EXAMPLE, which will show you the animation. But you want to connect it later maybe to the data inside your database. If your DATABASE will be filled with new ITEMS → your CANVAS-BOTTLE will show the results in a nice VISUALIZATION. Of course you can use also some nice CSS for better design and style of your BOTTLE-ANIMATION. …