I have a div.infotext with one paragraph inside. I animate the height of this div by 120 pixels. Thus, the text below, which is not shown, since the height is turned off.
All text appears when I find this div.
The problem I'm currently facing is that there is no indicator that there is more text inside this paragraph. I would like to add three dots (...) at the end of the last word to be shown, and disappear when I vibrate the div.
Any idea?
UPDATE: Added code.
function enableHoverQuotes(){
var height3 = $('.c2244').height();
$('.introtext').css({ height: '107px', overflow: 'hidden' });
$(".introtext").hoverIntent(showInfoText,hideInfoText);
function showInfoText(){ $(this).animate({'height':height3}, 600); }
function hideInfoText(){ $(this).animate({'height':'107'}, 600); }
}
source
share