Shaun Gorneau last won the day on February 16

Shaun Gorneau had the most liked content!

Shaun Gorneau

Moderators
  • Content Count

    541
  • Joined

  • Last visited

  • Days Won

    19

Shaun Gorneau last won the day on February 16

Shaun Gorneau had the most liked content!

Community Reputation

1,268 Superhero

6 Followers

About Shaun Gorneau

  • Rank
    Advanced Member
  • Birthday May 31

Contact Methods

Profile Information

  • Gender
    Male
  • Location
    Hartford, CT

Recent Profile Visitors

4,925 profile views
  1. Shaun Gorneau

    Change direction of Carousel wrap example

    Happy to help, @lsloss! And thanks ... I am feeling better today!
  2. Shaun Gorneau

    huge stroke-dasharray value w drawSVGplugin

    Hi @flowen ... I'm not seeing much of anything in the results of your pen, so I'm not sure what to look for. But I do see a few issues off the bat. Your DrawSVG tweens are calling the SVG directly, but draw SVG expects a path, rect, ellipse, line, polyline, or polygon. Also, I'm sure how well this will play with xlink to the symbol path. Any way you can do this with one SVG alone?
  3. Shaun Gorneau

    Overlapping TimelineMax Tweens

    Awesome! Happy to help!
  4. Shaun Gorneau

    Change direction of Carousel wrap example

    Hi @lsloss, have a look here to see "one way" it can be done. I say "one way" because I'm sure there are better methods than my ternary operator ... but I'm not feeling well today and it's all I can think of right now! 🤪 Hope this helps!
  5. Shaun Gorneau

    render issue tweenTo

    There is a lot to dissect here, unfortunately. Here is a Pen to get you started ... if you can link to some Creative Commons images for a small test case, that would be helpful. Do you see the same result in the DOM if you were doing this to simple <div>s? (rather than images)
  6. Shaun Gorneau

    Overlapping TimelineMax Tweens

    I think what you're looking for are negative relative positions rather than a delay. But I maybe misunderstanding. If there are to be any two tweens on a single timeline overlapping for any amount of a time, a negative relative position can pull it back on the timeline so the tweens don't butt up to each other. Have a look here to see if this helps
  7. Shaun Gorneau

    pausing a timeline

    Hi @pfash and welcome to GreenSock! There are quite a few ways to do something like this, some better than others depending on the scenario. But here a few ways ... option 1 shows how to use the delay property of a tween option 2 shows how to use a "dummy" tween to stick some time into the timeline where nothing actually happens option 3 shows how to inject an addPause to a timeline and then use a callback function to undo it some time later Hope this helps!
  8. Shaun Gorneau

    Animating SVG logo fill

    Great! Happy to help!
  9. Shaun Gorneau

    Animating SVG logo fill

    @RyRInfo, have a look here to see how I tween a span behind an SVG to look fluid like. A few notes ... The "fill" is actually a span with a background color that is showing through the SVG and I'm tweening that span. This is all inside of a div with a border and border radius with overflow:hidden to mask any of the span outside of the circle. You could so something similar by leaving the R&R letter fill transparent in your SGV, but actually leave the area outside of the letters white to "mask" the span. I put mask in quotes because it's not an SVG <mask>. That is also another option ... explained here. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/mask Also note that the amount of the tween is based off of a data-completion attribute on each wrapping div ... so a bit of the JS is just calculating how much to tween the span. I just find making a knocked out SVG and stuffing it into a DIV with overflow hidden an easier way to do these things. Here is a simple CodePen showing that. Hope this helps! EDIT: Did the SG for my initials ... it's not of mixup of GreenSock initials
  10. Shaun Gorneau

    Images onload

    Hi @Emilek1337, Depending on a few things, you could tackle this in a few ways. You can declare the timelines outside of the onload in the global scope, and then build one within the onload and then again make reference to the other from within the onload scope. Like this, Or, you certainly can include everything with the onload scope ... just know that means no Javascript will fire until all assets are loaded. Or, you can build a master timeline and stuff that with timelines to handle the natural sequencing.
  11. Shaun Gorneau

    Images onload

    Hi @Emilek1337, Yup, certainly You can initially give the .img elements an opacity of 0 and then put all your code into a window.onload ... and within in that, tween the first to opacity 1 as way to bring it in nicely .. then set all to 1 to make them ready. Here is a codepen showing how to do that,
  12. Shaun Gorneau

    SplitText nested elements

    Other than the forums (which is always a great place for answers!) ... there is always the documentation to take a quick look at too. In this case, the video is on the SplitText page It's quite a way down on the page, but there https://greensock.com/docs/Utilities/SplitText
  13. Shaun Gorneau

    SplitText nested elements

    Hi @BalkanBrothers, I believe this is what you're looking for SplitText Update: Nested elements and emoji
  14. Shaun Gorneau

    Paused Timeline create weird issue

    That's great!! Good luck with the project!
  15. Shaun Gorneau

    Paused Timeline create weird issue

    OK, that makes sense. I would apply that CSS to a single element somewhere up the DOM (generally <body>) and undo it with Javascript within the onload ... like this. A lot less to manage and undo Also, @Jack ... now that is simplified!! I hate when I don't think of these things!! 🤦‍♂️