Jump to content
Search Community

mCat006

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by mCat006

  1. OK @Cassie, make some updates in my pen

    Look I want to pin 1 element like it works now.

    But when second slide is Active i want to avoid scrolling but put the image in pinned section

    Like in image attached, because like you see second slide is activated because background is changed and image is shown

    And in end of Animation last image shouldn't be hidden but pinned to bottom of section

     

     

    1.thumb.jpg.4b402ebdaf8c9caa63c2bf916cbc84df.jpg

  2. Hello

    I want to place on the right side, a container with an image, which, depending on the active slide, will change the image and finally will be at the very bottom of the section it is in.

    Additionally, when I start pinning an element, it moves away from the right side of the screen, where it should be located.

     

    What I'm doing wrong?

     

    See the Pen MWVrZeg by mateuszkania (@mateuszkania) on CodePen

  3. HI @GreenSock, thanks a lot for this solution, but it not works correctly with data which I got from API but some gradients are in CSS vars

     

    I created extra div which has in style backgroundColor

      <div className="bg-placeholder" style={style}></div>

    and this div is hidden by default and it is shown when particular slide is active

    .bg-placeholder {
      height: 100vh;
      left: 0;
      opacity: 0;
      position: fixed;
      top: 0;
      transition: opacity 1.5s;
      width: 100vw;
      z-index: -1;
    }
    
    .slider-slide.is-active {
      .bg-placeholder {
        opacity: 1;
      }
    }

     

  4. Hello Community,

    I'm starting my adventure with ScrollTrigger. Generally I want to copy effect from  http://markup.io

    here is my CodeSandbox https://codesandbox.io/s/gsap-demo-7e6hl?file=/src/components/Carousel/Carousel.js

     

    On bottom of every section is generated big unnecessary spacing. Images will be with different height and they always will be from center to the right edge of the screen. I would be grateful for any suggestions on how to fix and improve this.

     

    Thanks!

     

×
×
  • Create New...