Hello friends!
I have a problem with tweening a div from height: 40px to height: auto (to expand the height to its content)
In the codepen you will see. The problem is at line 7 in the .js, if i change the height: '100%' to a fix value ex. 400px the transition happen smoothly but if a use a not-fixed value it "jumps" to the shape.
How can i solve this? i need the modal to animate depending on the content without much complexity.
Have a nice weekend!
.to('.tnd-modal-container', '.35', {width:"100%", height:"100%", borderRadius:"7px"},'modalCloseSurveyTime+=0.5')
CHANGE IT FOR
.to('.tnd-modal-container', '.35', {width:"100%", height:"400px", borderRadius:"7px"},'modalCloseSurveyTime+=0.5')
AND YOU WOULD SEE IT AS I WANT IT TO BEHAVE