I want to animate a text box but I have to do it via Corvid because the text is in a hoverbox. I tried to do this:
let glideOptions = {
"duration": 2000,
"delay": 7000,
"angle": 180,
"distance": 150
};
$w("#text2").show("glide", glideOptions);
But it doesn't seem to work. I tried to animate the hoverbox (replacing #text2 with #hoverboard1) but it also didn't work. Any ideas?
Thanks in advance.
Also, are you trying to animate the text on the regular page of the hoverbox or the hover page itself?
Remember that the hoverbox is technically a Wix app and with the regular page that anything you add will be automatically animated so that it can switch over to the hover page etc. Whereas the hover page will be left for you to edit animations on anything as you so wish.
Therefore, if you are trying to animate text on the regular page it may not work as it may be overridden with the animation already setup for the hoverbox, whereas on the hover page you can add the glide in effect animation yourself through the Wix Editor settings.
Be sure to hide the text before you animate it.
.show() only works on hidden elements.