davatron5000 / FitText.js

A jQuery plugin for inflating web type
http://fittextjs.com
6.75k stars 1.39k forks source link

FitText.js + image slider captions #27

Closed ghost closed 12 years ago

ghost commented 12 years ago

I've been trying to use FitText with an image slider. However, it only works with the first caption, the rest do not adjust to their correct heights until you resize the viewport. I haven't been able to find a fix for this, and I was wondering if anything can be done.

Many thanks!

davatron5000 commented 12 years ago

Because your slides (beyond the first one) are display:none, they have a width of zero. So you'll need to apply FitText to your active slide using some kind of callback.

ghost commented 12 years ago

Wow thanks for the quick reply! :) That makes sense. I've heard you saying that JavaScript should be the next language people learn on ShopTalk, I think its high time I listened to that advice. Cheers!

trewknowledge commented 12 years ago

Were you able to get that issue resolved? I am currently facing the same problem with having FitText on my slider.