Shadow clipping

Shadow clipping

I'm trying to squash some text shadow clipping.  I have a script that separates each letter (Lettering plugin) to split up each letter and then using hoverwords plugin along with jQuery Easing to do the animation. At the end of js you can see my attempt at shadow clipping.  Right now an example problem letter is the 't' after you mouseover the first word and then mouseout and then the first word will come back and you will see the 't' shadow clipped.

Here's a  jsfiddle so you can see it in action.

Here's what I tried:
  1. $('.sl-wrapper').each(function(index) {
  2.       var initwd1 = $(this).children('.sl-w1').width();
  3.       var shadwd1 = 8 + 3;
  4.       console.log('Init Width' + index + ': ' + initwd1);
  5.       if (initwd1 <= shadwd1) { // looking to see if width is equal to or less than shadow & blur
  6.         var fixwd1 = initwd1 + 5 
  7.         console.log('Width Fix on: ' + index + ' - ' + fixwd1);
  8.         $(this).children('.sl-w1').css({'width': fixwd1 + 'px'});  // incr. the width
  9.         if ($(this).next('.sl-wrapper').length != 0) {  //check to make sure there's a following elem.
  10.           $(this).next('.sl-wrapper').css({'margin-left': -5 + 'px'});  // adjust left margin to account for width incr 
  11.           console.log('Margin Fix on: ' + indexnext);
  12.         }  
  13.       }
  14.     });
  15.   });
In the css, I've assigned overflow-visible to the parent ".sl-wrapper", but it still refuses to show the shadow. 

Noticed when I bring up console, then it shows fine - wondering if there's a way to get this to happen through some kind of callout - not really sure.  Thanks,  Bill

    • Topic Participants

    • bill