Jump to content
GreenSock

Adam.shires

ShockinglyGreen
  • Posts

    8
  • Joined

  • Last visited

About Adam.shires

Adam.shires's Achievements

  1. Yeah, I figured that animating the container element was throwing off the start/end calcs. Was happy with the array stuff too, however I was struggling to build something which animated the array through the viewport without using the shifting container. The solution I came up with works a treat though Thanks again
  2. Hi @GSAP Helper Thanks for the apology. I'm fairly exhausted too, been a long week building this thing out and this final issue has had me frustrated. Sorry for my curt response. Yeah, I have reengineered the solution to simply use a normal timeline and stagger. And have removed the scrolling container as it was causing all the calculation mishaps. I was hoping to better understand the array structure and wanted to see if I could build something using arrays, but the reengineered solution is cleaner and easier to manipulate. Again sorry for misinterpreting your response
  3. Hi @GSAP Helper Sorry if you got lost, but your tone is a little rude to be honest. I tried my best to explain the issue and wanted to help people understand the issue with enclosed pictures. Don't appreciate being made to feel like a beggar asking for free fixes. I too want to be able to understand the product better and know where I could better amend my design. I don't think responding to peoples honest requests for assistance with such rhetoric is appropriate. The screen shots and demo both show text scaling after hitting 50% of the viewport so not sure why you'd say they have nothing to do with each other. All I want to know is how I can get the text div to use the marker div in the minimal demo as a target while in the array? and yes I am trying to get the text to scale, and a line go through it when it hits the center of the screen.
  4. Hey guys, So I'm building a website for a client at the moment and have been writing a large scrollTrigger animation for the page. Everything is going great, but I can't get my head around one issue. So I've built a section with 700vh to act as a sticky section (not using pin) inside I've got a 100vh container with a number of divs inside, each with text. The container holding the text rolls through the viewport and, what is supposed to happen is; when the text inside the container hits the center of the viewport an animation starts which scales the text, and a strikethrough line crosses it out. So far it's going well and This can be seen in 'image A'. However, when I refresh the page their position in the animation isn't updated to the viewport 'image B'. I realise this is my fault and not scrollTrigger's as I've built the array to target the trigger so the calculations are obviously being made with it's original position in mind rather than the new position. This can be seen in 'image C' where the markers are shown significantly further down than the triggers. But there's also some strange behaviour that if all the trigger elements in the array are on screen, then it has no problem with the refresh, 'image D'. I've included a pen, with a similar build to what I'm working with and was hoping someone could offer some advice on what would be a better solutiuon to build this rolling text effect out. Thanks so much in advance 🙏
  5. Hey guys, Have been loving learning all about scroll animations and am currently applying a huge amount to a clients website. I've recently managed to amend a number counter - scrollTrigger animation to only go to a single decimal point. But I was wondering how I could add a '0' in front of the single digits before it hits ten? Any help would be greatly appreciated 😄
  6. Thanks so much for all the advice @OSUblake and @mvaneijgen I'm going to spend some time playing around with all the solutions you mentioned and will let you know how I go
  7. Hey everyone, This is my first post on the forum and I'm extremely new to this all. My JS is non existent and my HTML and CSS are very basic. I use Webflow to build sites for my little studio and have made it my goal this year to learn HTML, CSS and JS as best I can. Recently I've been trying to implement ScrollTrigger animations into a rebuild of our current website. I've been having some success and everything is running smoothly except in Safari. I'm running Chrome (Version 98.0.4758.81) on Windows 10 64Bit and the animations are smooth and fluid. However, when running it on my Safari (Version 15.3) on my wife's MacBook Pro and iMac the animations are incredibly choppy and laggy. I've noticed that up to a point in the scroll animation it seems to suffer with so much transforming text on the page and really doesn't seem to like the transitions of the autoAlpha until it's finished, then runs smooth again. I've tried to create a Codepen to demonstrate: But here is my staging site: https://bsa-site.webflow.io/ Any advice on getting this to run smoothly on Safari would be greatly appreciated. Much thanks in advance Adam
×