Jump to content
Search Community

Andy777

Members
  • Posts

    38
  • Joined

  • Last visited

Posts posted by Andy777

  1. Hi, 

     

    I have a problem on this animation. When a user scroll for the first time the first div scale to 0 and set its height to 0 then it displays none.

    That's works well on first div animation but with the second div it don't work as it should do with the first.

    What i am doing wrong and how i can solve that issue?

    See the Pen qBMPdYx by Andy199807 (@Andy199807) on CodePen

  2. i post to you the link to my port when you maybe find what's going on on inspect element tab css of element. @GreenSock you will see that on not in viewport of the tirdth section the text is translated(0px, -25px) and that's okay and when the third section in in viewport it impost to text IT translate3d(0px, -24.9795px, 0px) and not translate3d(0px, 0px, 0px) that's the problem.

     

    Here my site :

    https://andyrighetto.com

  3. hello there,

     

    On my local development the animation works well but if i replicate it on my site it doesn't work here is the code: 

      .body{
                    height: 100vh;
                }
                .myskillssection{
                    width: 100%;
                    height:100vh;
                    background-color: black;
                }
                .box{
                    border:1px solid red;
                    overflow: hidden;
                }
                .box .text{
                    color:aqua;
                }
    
      
    
            <div class="myskillssection">
    
                <div class="box">
                    <div class="text">My text</div>
                </div>
    
            </div>
     gsap.set(".text",{ y: -25})
    var tx = gsap.timeline({
      defaults: { duration: 100, ease: "none" },
      scrollTrigger: {
        trigger: ".myskillssection",
        scrub: true,
        start: "top top",
        end: "bottom top",
        pin:true,
        markers: true
      }
    });
    
    tx.to(".text", {y:0})

    In my site it translateY to -25px default and when it is in viewport it  transform to translate3d(0px, -24.9795px, 0px) -24.etc instead of 0px, how i fix that issue?

  4. I have another problem when i visualise the site on mobile devices, i think the problem is in set the height of each sections, but i am not sure. If someone could help me i will really appreciate. 

     

    I suggest to find the issue to see the site on mobile screen of "inspect element". You will see that the height of the body is too hight respect of the entire size of the sections.

     

    Here the codepen: 

    See the Pen WNgegOG by Andy199807 (@Andy199807) on CodePen

     

×
×
  • Create New...