Jump to content
Search Community

jorin

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by jorin

  1. 1 minute ago, GSAP Helper said:

    Hi @jorin and welcome to the GreenSock forums!

     

    It's pretty tough to troubleshoot without a minimal demo - the issue could be caused by CSS, markup, a third party library, your browser, an external script that's totally unrelated to GSAP, etc. Would you please provide a very simple CodePen or Stackblitz that demonstrates the issue? 

     

    Please don't include your whole project. Just some colored <div> elements and the GSAP code is best (avoid frameworks if possible). See if you can recreate the issue with as few dependancies as possible. If not, incrementally add code bit by bit until it breaks. Usually people solve their own issues during this process! If not, then at least we have a reduced test case which greatly increases your chances of getting a relevant answer.

     

    Here's a starter CodePen that loads all the plugins. Just click "fork" at the bottom right and make your minimal demo

     

     

    If you're using something like React/Next/Vue/Nuxt or some other framework, you may find StackBlitz easier to use. We have a series of collections with different templates for you to get started on these different frameworks: React/Next/Vue/Nuxt.

     

    Once we see an isolated demo, we'll do our best to jump in and help with your GSAP-specific questions. 

    I included a demo, any help would be appreciated!

  2. On 3/25/2023 at 7:38 PM, GreenSock said:

    I'm not entirely sure what you mean or the visual effect you want, but why don't you give it a try and then if you get stuck, post your minimal demo here (like a CodePen) and we'll do our best to answer any GSAP-specific questions?

    I think I'm trying to achieve this same effect. I kinda got it working by modifying the code @OSUblake provided in his answer to the original question. But there is a problem I can't figure out how to fix. See as you hover over the icons the width changes correctly, but while the icons seem to scale correctly on the left side of the toolbar they scale incorrectly on the right side, im guessing because of the width of the toolbar changing and certain vallues not getting updated. 

     

    This is me hovering on the left side of the toolbar which seems to work correctly:

    image.jpeg.c3475c98cb1db71193ed03e5e3b4b8a7.jpeg

    And this is me hovering on the right side of the toolbar where you can see the icons to the right side of the mouse scale too early and are too large because of this:

    image.jpeg.bf7f88bdd0412be6b4d031a79c5fccd4.jpeg

    Any help is greatly appreciated

    See the Pen QWJZerM by jo_orin (@jo_orin) on CodePen

×
×
  • Create New...