Jump to content
Search Community

mrWilson

Members
  • Posts

    17
  • Joined

  • Last visited

Posts posted by mrWilson

  1. Thanks, you're my superhero.  :) 

     

    8 hours ago, GreenSock said:

    Actually, I'd probably simplify it even more by eliminating the data-src and using logic in the JS to build that dynamically based on the original src

     

    That would be nice. I think many others also will find it useful. Different solutions are always welcome, it helps to better understand and learn.

     

    Thank you again. 👍

    • Thanks 1
  2. Hi, 

     

    I have a question about the ScrollTrigger Image lazy loading.  The demo sample uses HTML markup like this: 

     

    <section class="preloadSection">
      <div class="deferredImageContainer">
        <img class="deferredImage" width="1200" height="600" src="https://picsum.photos/id/237/20/10" data-src="https://picsum.photos/id/237/1200/600">
      </div>
    </section>

    Is it possible to do this much simplified? As follows:

     

    <img class="lazy" src="https://picsum.photos/id/237/20/10" data-src="https://picsum.photos/id/237/1200/600">

     

    Thanks.

     

     

    See the Pen YzydvBE?editors=1010 by GreenSock (@GreenSock) on CodePen

  3. Hi, I'm using Swiper slider, and I've created fixed position captions for it. I don't want them to move with the slide as usual, so I lifted captions out of the slide. I got it to work, but I'm having trouble animating them. I don't know how to do it. :( For example: if the slide changes then the previous slide titles fade out + slide up, and the next slide titles fade in + slide up. 

     

    Thank you.

     

     

    See the Pen gOPOOdp by mrWilson123 (@mrWilson123) on CodePen

  4. Hi,

     

    I'm trying to get smooth scrolling to work properly, but unfortunately I can't handle it myself (sorry, I'm pretty new of this). I'm using a scrollToPlugin and external plugin called "Smooth Scrollbar". If you look at it you will see that it is not working properly. Clicking on the link will move it chaotically. Also, if you click on the link multiple times, the page will move up and down, though it shouldn't. Hopefully someone can help me with this.

     

    Thank you.

    See the Pen poJraMM by Siilionu (@Siilionu) on CodePen

×
×
  • Create New...