Jump to content
Search Community

Dave Dublin

Members
  • Posts

    17
  • Joined

  • Last visited

Posts posted by Dave Dublin

  1. Hi

    Not sure if this is possible.

     

    Is there a way to remove the scroll function of the attached codepen?

     

    For example, I want to be able to keep the function of the buttons (1,2,3) to cycle through the animation, but I don't want the actual page scroll to be attached to the timeline animation anymore. I feel that the user should be able to scroll past this block without always having to scroll though all the cards.

    Any suggestions?

     

    Thanks

    Dave

     

    See the Pen dyeYdRK by davedublin (@davedublin) on CodePen

  2. Hi 

    Is it possible, to be able to snap the scroll to a label in my timeline?

    At the moment I have buttons that go to labels but I was wondering is there a setting that allows me to snap to these points if my manual scrolling is close to that point?

    So for example, if Card 3 was almost at its end point, that it would automatically fully go to its end point.

     

    Thanks 

    Dave

    See the Pen dyeYdRK by davedublin (@davedublin) on CodePen

  3. Hi Rodrigo

     

    Thanks for doing that. What I was looking for though was to the vertical scroll to happen just as the last block has entered the viewport.

    So for example, when the last below block is visible, the side scroll stops.

     

    I think I may have gotten close enough with, just not sure what it all means.

    I changed: 

    xPercent: -100 * (boxes.length - 1),

    to
     xPercent: -100 * (boxes.length - 1.9),

     

    Thanks again

     

     

    Screenshot-2022-09-15-at-08.42.38.png

    • Like 1
  4. Thanks Rodrigo

    It wasn't exactly what I was looking for, but this should well though thanks.

     

    One other question if you don't mind.

    Is it possible for the horizontal animation to finish, and continue the normal scroll, when the last just block comes into view.

    At the moment the horizontal blocks are half way across, by the time it scrolls down again.

    I can't seem to get rid of all that spacing on the right.

    See screen shot

    Screenshot 2022-09-14 at 23.13.15.png

  5. Hi

    In a horizontal scroll, is there a setting that stops the previous content from disappearing (continuing to scroll), and having the next block visible while the horizontal scrolling is happening?

     

    If I am not making sense, please see the screenshot:

    I want the title 'horizontal header" not to disappear when the block are scrolling sideways.

    And also for the footer (red) block to be visible. So to look like the screenshot, while the side scroll is happening.

     

    The horizontal header block isn't full height, so the page is looking very empty while the horizontal scroll is happening, see last screenshot.

     

    Any help would be appreciated

     

    Thanks

    Dave

    Screenshot 2022-09-14 at 19.49.05.png

    Screenshot 2022-09-14 at 20.02.55.png

    See the Pen bGMBOaV by davedublin (@davedublin) on CodePen

  6. Hi

    Is it possible to click to a point in the timeline animation?

    I tried to utilise the following code but I think I am missing something.

    Should I be using Labels?

    The idea is that you can click on the number and it will scroll to the card

     

    gsap.utils.toArray(".nav a").forEach((a, i) => {
          a.addEventListener("click", e => {
            e.preventDefault();
            gsap.to(window, {scrollTo: i * innerWidth})
          });
        });

     

    See the Pen dyeYdRK by davedublin (@davedublin) on CodePen

  7. Sorry just one last thing. How do I slow it down?

    I added duration:0.2 to a timeline state but that didn't really do anything.

    It seems to go faster than the scroll.

     

    And is there a way to know which 'card' is active/animating?

    I'd like to add a class

     

    Thanks

    Dave

  8. Thanks for sending through.

     

    I was hoping for the animation to flow with the scroll of the page, not animating by itself.

    so if you scroll slowly down the page, the blocks will overlap slowly, or if you go the other way, they reverse.

    Just like this example, but imagine the browser being upside down: 

     

     

     

  9. Thanks for the reply but I don't really have much experience at all with gsap.

    I just used scrolltrigger once before for a horizontal scroll and it worked ok.

    I saw a solution to a similar problem in the link below but I'm looking for the reverse of it.

     

    My experience is in JS and css normally.

  10. Hi 

    If anyone can help I'd appreciate it.

    I am trying to achieve the effect of blocks overlapping as you scroll down but I am having trouble.

    I am not too knowledgable on the scrolltrigger code but I am trying to achieve a simpler version of what is on this site: 

    https://weltio.com/about/

    Also is there a callback function for when the scroll effect has initiated?

    I'd like to be able to add a fade effect to the previous slide.

    I've been looking through the documentation but having trouble finding a solution

     

    Thanks

    Dave

    See the Pen dyeYdRK by davedublin (@davedublin) on CodePen

    • Like 1
×
×
  • Create New...