CSS-Tricks / MovingBoxes

Simple horizontal slider which grows up the current box when it's in focus (image, title & text) and back down when it's not in focus.
http://css-tricks.github.io/MovingBoxes/
GNU Lesser General Public License v3.0
280 stars 147 forks source link

hiding text when panel comes into view #95

Closed DizzyBHigh closed 12 years ago

DizzyBHigh commented 12 years ago

any ideas on how to have the text hidden using $('textholder').hide / show

textholder would be the id or class i have holding the text, i would like to have it hidden and then displayed on the currently active item then hidden again when it is not active

hope that makes sense and there is an easy way of doing this

thanks in advance

Mottie commented 12 years ago

Hi DizzyBHigh!

Maybe this demo that dims non-current panels will give you an idea of how to do this. It only uses CSS to accomplish the dimming, so if you need, you can add come css3 animation to it as well.

DizzyBHigh commented 12 years ago

thanks got it working :)