i saw a stack question posted already:
[question]: < Text in div – automated scrolling with jQuery – jsFiddle inside >
My question adding to this is, is it possible to have the text in each paragraph or separated divs highlighted (boldness, background color, etc.) once they are in main view, whilst the p’s or div’s leaving/entering the slider box are faded?
So like the jsfiddle referenced, you have a div container with say 4,5,6,… div’s or p’s inside of it and one div or p is visible whilst the div or p above and below it, only half would be visible (faded), whilst the remaining overflow is hidden.
thanks.
If I understand you correctly, you’re looking for an effect like this:
http://jsfiddle.net/2RRWS/
My code assumes an html structure like:
And some CSS to set the width/height of the containing div as appropriate. Also it assumes some classes for “dimmed” and “highlighted” paragraphs.
There’s probably a cleaner way to do this, but this is just what I cobbled together and it seems to work, so…
EDIT: Updated to implement “pause” feature as per comment. http://jsfiddle.net/2RRWS/8/