plugin that shows/hides text so that it fits in element

plugin that shows/hides text so that it fits in element

i have a resizable box with text in it. i was wondering whether there is a way so that if not all the text fits in that box, i can just show the beginning of it followed by "..." and as the user increases/decreases the size of the box, more/less of the text automatically appears. is there some plugin that can do this for me?

if not, any ideas on how i can achieve do this in a straightforward way?

thanks in advance!