Here is the template I am currently working with:
<div class='content'>
{{content}}
</div>
Along with the following style:
.content {
margin-top: 30px;
background-color: skyblue;
width: 300px;
transition: all linear 0.5s;
}
I am facing an issue where the {{content}}
dynamically grows or shrinks, but the CSS transition does not work properly when new content is injected into the element. How can I ensure that the transition works correctly even when more content is added?
You can view the code on this Plunker link.
Thank you,
Amit.