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?