Is there a way to make a div element increase in height through an animation without extending beyond the viewable area, causing the window to automatically scroll down as the div expands? I am looking for a solution that will keep the scroll position locked at the bottom of the page.
Note: This question pertains to React.
I have already searched countless times on Google and Stack Overflow for answers, but none of them seem to work or provide the specific guidance needed.
Check out the code here: https://github.com/coryb08/corydbaker. To run the code, use the command: npm install && npm start