Jump to content
Search Community

mikel last won the day on March 14 2022

mikel had the most liked content!

mikel

Moderators
  • Posts

    2,157
  • Joined

  • Last visited

  • Days Won

    71

Posts posted by mikel

  1. Hey @Samuele,

     

    The Dude sprite is ok: width 2000 px, 10 pics.

     

    So for your setup you probably need:

     

    .viewer {
      height: 100%;
      margin-left: auto;
      margin-right: auto;
      width: calc(2000px / 10); // !!!
      background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/210284/doodle-sprite.png");
      background-repeat: no-repeat;
      background-position: 0 50%;
    }

     

    Happy tweening ...

    Mikel

     

    • Like 2
  2. Hey @Black Ducas,

     

    No GSAP bug. From the DOCS:

     

    Some browsers (like Safari) apply custom kerning by default between letters, so when characters are split apart and put into their own divs, the spacing is slightly different. A bug has been filed with the Safari team (it’s a browser issue, not SplitText) but you can typically eliminate the differences by setting these CSS properties: ...

     

    In your case try:

     

    letter-spacing:4.2px;  // ???
    -webkit-text-rendering: optimizeSpeed;
    text-rendering: optimizeSpeed;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);

     

    Happy tweening ...

    Mikel

     

     

    • Like 1
×
×
  • Create New...