In jQuery, can you fadeOut() without losing the element's real estate? (invisible vs display: none) -
Because I need another element of the same type of fade in (), there is a method of fade () element So that space is kept, so that the second element does not go again for a second partition and then the fadein () will bring the second element back with the same size?
- Wrap the element in a div that holds the right amount of space.
- Use the method to change the opacity of the item from 100% to 0%, then when the animation is complete, then swap the new element And animate again once again to change the ambiguity from 0% to 100%.
Comments
Post a Comment