is it possible to move element on click

i nned to change position of box after click of button. I can do it by duplicate and hide show. But it doesnt make sense becasue its the same element. Can i somehow change position of element?

1 Like

Hi!

Unfortunately moving object using code is not available in Wix.
Please feel free to submit a feature request here and help to make it happen!

As a workaround I’d indeed use the show/hide technique.

Doron.

but then i need duplicate element and this element has lots of code i need to change for different element becasue there is lots of buttons. Anyway i will submit as feature. Thanks

Is it possible now ?

Vote for this feature here…

https://www.wix.com/velo/requested-feature/moving-elements-on-page

In most cases a simple workaround just to hide & show or collapse & expand elements are not sufficient. And this wa-technique also requiere more elements to be placed on the page, which is also not recommended because of causing slower loading times.

This feature should be given right from the beginning of CORVID/VELO on my opinion.

To switch to editor-X is also not the right option.

Only ways i can think of to achieve it is to use an HTML-Component (iFrame) or an custom element.

Everything could be so easy…

I really hope they impliment this, I look through all their code and I couldn’t find it, It feels like it should be a basic interaction. I just want to be able to create interaction however I want.

Like by hovering over a button I want it to be able to move up 5 pixel or like if I am making a catalog with a grid I want to be able to make it so when I click on one it will move right by 20 pixel,

Also they should make it so that if they do at transitioning left right up down, there should be a z axis where it move forward or backward.

Or even be able to move something toward center of screen view or in any direction either by pixel or by screen view height and width.

Sorry for rant, just sad that when I start using wix, I wasn’t able to create and transitioning interaction.

@kyanhnguyen513 Vote for this feature in the wishlist.

I’m not a pro in this, but I think you can move an object using the wixAnimation API ( the x and y positions).

Good idea. Perhaps this could be useful!

1 Like

Take a look onto this example…
This perhaps can solve your issue…
https://www.wix.com/velo-examples/animations-package

Hi everyone,

We’d like to know more about this request to see if it’s still needed. Please respond with the following information:

  1. What are you trying to build?

  2. Which Editor are you using?

  3. Have you tried using Timeline Animation API ? Does it suit your needs? Why/why not?

Thanks!