Hi guys, I already learned how to hide a element in wix which is below.
Can anyone share how to use code to lower a Element or raise a Element higher in wix? Thanks much.
$w.onReady( function () {
// Hides the element when the page loads
$w(“#box19”).hide();
});
To do either you would need to have an event that would include the effect or the scroll to happen, that could be something simple like a click on something or when you move a mouse over something or you have something come into the viewport for example.
For more info on them, simply type onClick or onMouseIn or onMouseOut or onViewportEnter or onViewportLeave into the search function of the Wix API reference, which you can get to by clicking on either of the two links provided above.
It will then give you a list of different examples from the API reference that you can read and learn yourself and if you have anymore issues simply come back and post another question in this code forum.
@qualitykindpromotion This is a DOM adjustment, and those are unfortunately not possible with Corvid. You’ll have to find some workaround, or else use an iFrame where these sorts of DOM adjustments are possible.
So you would have to go through a lot of trouble just to move the element slightly downward or upwards? I thought that would be a simple code. Is it a easy way to do this?
All depends on your particular case, but probably no. The iframe is basically a webpage within a webpage and unless you tell it to communicate with your Corvid code, it won’t.