Please see video…
I’m needing code help with a delay that seems to be happening after I have an onClick hide event.
The menu box I created seems to show up perfectly on the onClick show event, but leaves the text behind, as well as takes too long on the hide event. My coding skills are only from what I’ve learned in tutorials… So please speak slow (lol).
Here’s my code below:
export function blackIcon_click ( event ) {
$w ( ‘#blackMenu’ ). show ()
$w ( ‘#blueIcon’ ). show ();
}
export function blueIcon_click ( event ) {
$w ( ‘#blackMenu’ ). hide ()
$w ( ‘#blueIcon’ ). hide ();
}
ANY HELP appreciated!
Which element is that, which i can see in the video?
Is this element an custom one or provided by an app?
Is that element connected to a database?
I made 3 custom vectors (blackIcon, blueIcon, & blackMenu). The icons are in one container and the menu is in another container box. Not connected to a database.
I tested it with 3 other elements that were default to Wix, and code worked perfectly… I’ll have to fix my vectors it seems.
@rc-powers
Ok, good to know.
This are the little bugy things (and some further) which still let my decision to use the normal editor instead of the editor-x.
@russian-dima Ya… I’m definitely having quite a few moments of regret moving over to Editor X. Creating pages takes 10x longer. I feel like I’m all the way back to how bad it used to be with SquareSpace. I might just try this same thing over on my old Wix site to test it. Thanks for the chat… Hope you’re doing well. 
@rc-powers
Yes, i am doing well thanks 
Like always working on some projects
.
And i must confess, that i did not regret to stay on the old good prooved normal Wix-Editor. Yes Editor-X has a big advantage in RESPONSITIVITY, but all other things are on my point of view → still like BETA.
Hi Shan,
Complete beginner here, not using editor x.
I’m not entirely clear on what happened for you but I have exactly the same issue.
I have a container box that has text boxes and wix vector icons inside. When I hide it using velo each element disappears in its own time. All assets within the container are affected, but none of them are custom.
What was your solution to the problem?
$w.onReady(()=>{
$w("#btnOnboard").onClick((event)=>{
$w("#boxOnboard").show();
$w("#boxHelp").hide();
});
$w("#btnHelp").onClick((event)=>{
$w("#boxOnboard").hide();
$w("#boxHelp").show();
});
});
@davidbowring I actually kept testing and found that the problem was with using ALL vector items. So I ended up having to use png files that I created, and just housed them inside containers. It doesn’t have as crisp of lines as the svg files do, but it works without the glitchy behavior.
@rc-powers Thanks for getting back to me. Weirdly, I removed the vectors entirely and the behaviour didn’t change. The container and text within them still kept just wandering off as and when they felt like it.
Ended up abandoning the idea entirely and just using new pages
In either case, problem solved!
@davidbowring Ha! I simplified mine quite a bit as well! Glad you got it solved!