| This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal. |
I am trying to animate a textbox's visibility. Once the animation completes, I can see the input box on the screen but I can't tap on it. It also doesn't animate the opacity - it just appears. What am I doing wrong?
I have the search box component (with contract) on a z-index of 50 and the flex container behind on a z-index of 1.
Testing on iPhone X Native.
showSearch:function() {
// trigger onShowSearch event
this.onShowSearch();
// turn on search visibility
this.view.flxSearchContainer.setVisibility(true);
const searchAnimation = kony.ui.createAnimation({
"0":{"opacity": "0", "top": "0%"},
"100":{"opacity": "1", "top": "100%"}
});
const animationConfig = {
"duration":"0.5",
"delay":"0",
"iterationCount":"1",
"fillMode":kony.anim.FILL_MODE_FORWARDS
};
const callBack = {
"animationEnd" : function(){}
};
this.view.flxSearchContainer.animate(searchAnimation, animationConfig, callBack);
}