Jump to content
Search Community

Tom Roberts

Business
  • Posts

    16
  • Joined

  • Last visited

Posts posted by Tom Roberts

  1. HI Greensockers!

    Happy New Year to you all (I know it's a little late but it's heartfelt in these odd days!)

     

    I have a sequence of png files that I want to animate into a sprite sheet but I am not sure of the best way to do it.

    Does anyone have any codepen examples or suggestions on the best way to achieve the animation?

    Is it better to have a series of individual images (currently 120 images/frames) or to have one long spritesheet image containing all frames?

     

    I dont have a codepen to show an example as I am not sure on the best method to start creating this spritesheet animation so ALL suggestions are welcomed!

     

    Many thanks

     

    Neilb1969

  2. Hi Greensockers!

    Another simple question from me.

    I want to create a looping background using images for a banner I am creating but I am having issues getting it to work.

    I have created a code pen to show the animation using background colours instead of the images I intend to use but I am getting a flash  when the animation loops. How can i prevent this flash and how do I stop the animation on the main timeline when the rest of the banner animations have finished playing?

     

    Thanks in advance.

    Neilb1969

    See the Pen qBabKwO by neilb1969 (@neilb1969) on CodePen

  3. Hi All
    I am creating an animation where I want a series of lines to draw in and then have other colours run along these lines at different intervals. Like pulses of electricity on an electrical circuit.

    I have created a codepen to demonstrate what I am aiming for, but the way I am heading it will be a complex animation when I add all the other lines  to create the circuitboard. Is there a more efficient way of coding this animation?

     

    I would also like to resolve the following issues:

    Second and third 'pulse' should be a fixed length (not grow during animation) and should not be visible apart from when they are moving.

    I have tried setting negative percentages and fixed lengths for the lines but then they seem to appear at either the start or the end of the animation again as they are currently showing.

     

    Lastly, I would like the final line to appear in the opposite direction so it draws towards the bigger line...  How?

     

    Thanks in advance,

     

    Neil

    See the Pen BazbWGQ by neilb1969 (@neilb1969) on CodePen

  4. 21 hours ago, mikel said:

    Hey @Tom Roberts,

     

    You can also use charsClass, wordsClass or linesClass:

     

    Property Description
    charsClass String - A CSS class to apply to each character’s <div>, making it easy to select. If you add "++" to the end of the class name, SplitText will append an incremented number to each character’s <div>, starting at 1. For example, if charsClass is "char++", the div’s class for the first character would be "char1", the next would be "char2", then "char3", etc. Default: undefined.

     

    Happy splitting ...

    Mikel

    HI Mikel,

    Thanks for the reply. Can you give me an example of what you mean via the codepen I posted above?

    I am fairly new to gsap and javascript and I would be guessing at the syntax so all help is greatfully received.

     

  5. Hi Greensockers!

    Can you help? I have an animation where I would like to make a gradient fill 'flow', basically make the colours top and bottom swop.

    I have looked on the forums and a lot of the suggestions are really old and didn't reference GSAP3.

    Do I need an additional plugin to achieve the effect (MorphSVG)?

    Thanks

     

    See the Pen ZEWgzgp by neilb1969 (@neilb1969) on CodePen

  6. 1 minute ago, Shaun Gorneau said:

     

    I'm not sure what you mean by "in the wrong positions". If what you mean is they are not fully out of the parent container and seem to "jump" prematurely, it's that you are not tweening them far enough. The container is three times the width of the element, moving from the center third by xPercent 100 will only move it to the right 3rd of the container (100% of the element's width). So 200% will get its left edge out of the container.

     

    As far as repeating the tween, you can do this all with one timeline and add reapat: -1 to the timeline's properties.

     

     

     

     Hi Shaun.

    Apologies if i didn't explain myself. I want the animation to come in once, exit and then come in and stay static the second time.

    This is why I set up 'in' and 'out' animations so I could play them in succession as 'in', 'out', 'in'.

    My problem is that when the 'in' animation wants to play the second time I only see the static boxes you see in my pen. No animation seems to be occurring and the elements are in the wrong positions.

     

  7. 1 hour ago, ZachSaucier said:

    Hey Tom. It took me some time to spot it. But if you look in your functions, you create a timeline but don't use it in any of them - you always use gsap.to, etc. So you're creating standalone tweens, not tweens within the timelines like they should be :) Switch them to tl.to, etc. and it will work:

     

     

    Thanks ZachSaucier. I am just getting my head around all this so thanks for the help.

×
×
  • Create New...