Jump to content
Search Community

TBWA-NY

Members
  • Posts

    6
  • Joined

  • Last visited

TBWA-NY's Achievements

  1. This is a great feature! Just a note, the .enable() documentation should have the same information as .disable() for the 'revert' parameter. The ScrollTrigger animation will jump from 0 to the current position on .enable() if you don't set 'revert' to false.
  2. Hello! Is there a way to pass an argument to a ScrollTrigger callback? Nevermind.. I see you have to wrap it in another function. onEnter: function(){ logRed("onEnter"); }, or onEnter: () => logRed("onEnter"), Thanks, Travis
  3. Welp its 2020 and OSUblake solution still works for me! At least in Chrome. will-change:transform; Thanks!
  4. Found the issue. I was preemptively setting overflow:hidden on the generated line divs without using a specific linesClass This must somehow effect the calculation of what text is on what lines. I updated my pen to show that. Bug of my own making. Easy to see it doesn't occur if you disable that style. Thanks again guys for taking a look.
  5. Thank you for the replies! The odd thing is that on the site I am developing, the split occurred in an instance where there is only one word wrapped with an inline tag. I got it to break in the odd way once or twice with this configuration in a pen, but it would not do it reliably. (sometimes break, then not). So I did it with two words since it would always break. I am going to see if I can replicate the exact issue in a pen.
  6. Splittext will sometimes split lines in odd ways, leaving single words by themselves. Has anyone else had experience with this? I have seen other posts suggesting to add letter-spacing etc.. which may fix it at a certain container width, but it will still do it at other widths. Are nested inline elements supported if splitting by lines? The documentation says no, but the workaround that is suggested doesn't seem to work either.
×
×
  • Create New...