The best approach is to start by concealing it. As per the provided information:
When the element is initially visible, it will be hidden; if hidden, it will be revealed.
You can hide it using a single CSS property (display: none
), which you can include in a specific class or directly add, or via .hide()
.
In addition, please note that direction
is not a recognized option and your demonstration code actually performs correctly in this jsFiddle example (because you have utilized display:none
). It would be wise to double-check that you are running a current jQuery version and there are no console errors present.