In my current project, I am facing an issue with a container div that has the CSS property overflow: auto
which cannot be removed. Inside this container, there is another div that toggles between showing and hiding using an animation triggered by a button click. However, the problem arises when this inner div moves down, causing an overflow within the container. It is important to note that the inner div must remain within the container.
To better illustrate the problem, you can view an example at the following link: https://jsfiddle.net/wg3jzkd6/1/
The desired outcome is as follows:
- The inner div should move down smoothly without causing any overflow within the container.