I have several text elements that are many paragraphs wrong. I figured it would be neater to shrink down the text element and have a ‘read more’ link (as many other sites do). When the reader clicks that link the element grows to full size.
I was wondering if there is a quick and easy way to do this, or a plugin maybe.
I’ll give that a try @stone and let you know how it goes.
I was hoping there might be a more elegant way or a plugin, as I have quite a few of these to setup as at the moment the pages are a bit text heavy. I suppose an alternative for my needs might be to use a popup box with the full text in. That might look neat too.
You could put your first bit of text into a text element, and your expanded text into a second element, which is inside a group. Set the group to collapse height when hidden. Have it hidden by default. Create a button for “read more” have this button toggle the hidden group. Animate the collapse. It works great. You can even add a condition on the button, so that when the group is visible, the text changes to “read less” or something.
So the first element height would be: font size * how many lines you want of text you want with “cut off text” and second one just have it expand naturally without cutting off.