Jump to content

BC Development

  • Posts

  • Joined

  • Last visited

Posts posted by BC Development

  1. Hey guys I have a very weird issue happening. First I was trying to create a CodePen but I can't replicate the issue there.


    I created a simple code example, so I have a tween on a timeline and I need functionality when the tween starts, the problem is that the onStart() function being trigger twice for some reason. First I thought that my function was being called twice but that is not the case. I did some research and I found similar issues but way back.

    Since I don't have a codepen to show, this is the example code that I have


      console.log('enter function')
        .to(this.ImageSections[this.currentSection], {
        onStart: ()=>{
          console.log('enter OnStart() Timeline')


    And this is the console log.

    So I can see my function is being trigger once, but the onStart() is being called twice for some reason



    Screen Shot 2021-07-20 at 17.01.33.png

  2. Hey guys, I'm using SplitText plugin to show like a typing animation, the problem is that sometimes I have buttons inside the paragraph and the plugin is also typing those character when I don't need the text inside the buttons to have that animation.


    It's there a way to get avoid that text to be splited?


    I try several techniques, one was to remove the paragraph with the buttons outside of the SplitText animation, the problem there is that I need the movement to the next line

    See the Pen bGWNVbY?editors=1010 by godhandkiller (@godhandkiller) on CodePen

  3. Hey guys, I have a problem with a tween. I have a SVG with some tailwind css and there is breakpoints where I center the absolute positioned SVG but whenever I apply the y property, gsap uses a translate instead of translate-y which causes my SVG to not be centered anymore because it overwrites my x value.


    How can I tell gsap to not apply any CSS on the x axis?

    See the Pen zYwKRev?editors=1010 by godhandkiller (@godhandkiller) on CodePen

  4. 11 hours ago, Trapti said:



    I tried doing it with split text. One timeline is for animating the texts, and other for taking the container up. Adjust the time and distance according to your actual text. Hope this helps. 




    Thank you for the answer, I have a question, I notice you're using 'staggerFrom' but isn't that an old function? I have use that with gsap3


    Also is there a way to move the text up when the line finish writing the text?

  5. Hey guys, I have a problem and I can't find a solution on the TextPlugin documentation.


    I have this section that is going to have text (the text is coming from a WYSIWYG so it's going to have a lot of HTML tags) and I need to create like a typewriting effect, the text is going to start from the bottom and is going to go up. I added a video so you can see the effect I'm looking for, the problem is that on the video it doesn't show that, but I need to animate individual characters.


    I was testing the plugin but I don't see a lot of properties that I can use to create this effect, so is it possible to do it with this plugin? Or should I be using something else?


    I added two examples on the codepen, on one I get the animation but only for the lines, no the characters. And on the second example I only get the last line animated, can't make to other text to appear



    See the Pen bGWNVbY?editors=1010 by godhandkiller (@godhandkiller) on CodePen

  6. 22 minutes ago, Cassie said:

    Heya! It'll need some tweaks as Mikel had some inline transforms I was a bit puzzled by

    But this should set you off on the right foot. Masking 🥳


    Thank you for this implementation, I'll try to make it work and get back to you if I'm successful (or not!)

    • Like 1

    hey @mikel I want to thank you for the great example. Even tho I was able to implemented  on my project It got more complex than I initially thought.


    This is a very raw example of what I have on my project. So basically I have images representing tape, so the the main one (horizontal one) is going to be on top of the other images, so by using your implementation I have a white shape covering the images underneath

    I understand the complexity of this and I run out of ideas of how to implemented, do you have another idea that I my try?


    See the Pen gOWONwG by huzzidiel (@huzzidiel) on CodePen

    • Like 2