Jump to content
Search Community

Louienator

Members
  • Posts

    67
  • Joined

  • Last visited

Posts posted by Louienator

  1. Hi, I was wondering if there is a way to make the preloader dependent on the internet speed. Alternatively, is it possible to preload the image and JS components while they are still loading, and then display the contents afterward? Also, I'd like the bar to grow horizontally from the center. Once everything is loaded, I want everything to fade out.

    Here's an example of an intro from this website where the text slides 1 by 1 vertically: 
    https://priyanshsingara.framer.website/

    Here's my fiddle:
    https://jsfiddle.net/5f1ock0w/1/

    Cheers,

    Louie V.

  2. Hi everyone,

     

    Let me clarify what I'm trying to accomplish. I want a button that, upon being clicked, will smoothly scroll to a specific section on the page. To achieve this, I need the ID to be dynamic and outputted through the use of get_the_title().

     

    In the code, there's a line that reads "<section class="screen" id="cebu">Cebu</section>". This line will be looped using PHP, or maybe just the ID will be used to make it unique. To target this specific line, I added the GSAP code.


    Here's the fiddle:

    https://jsfiddle.net/kwuthpbm/29/

  3. 12 minutes ago, PointC said:

    I always hate to say you really don't need GSAP for that, but you really don't need GSAP for this effect. It's quite simple so just a tiny bit of CSS is all it takes. to make it work. Just my two cents. Happy tweening.:) 

     

     

    Nice approach @PointC.. Thanks for this tip.. Will try this out and have an experiment.. I didn't know that it's achievable with just pure css.. Yey!

     

    Thanks

  4. 14 minutes ago, Rodrigo said:

    Hi,

     

    Transform origin is only useful when you're doing some specific transform on an element, so animating the width property is not affected by the transform origin property:

    https://developer.mozilla.org/en-US/docs/Web/CSS/transform-origin

     

     

    Here is one way to achieve that using scale:

     

    See the Pen

    See the Pen OJqjzZO by GreenSock (@GreenSock) on CodePen

    by GreenSock (@GreenSock) on CodePen

     

     

    Another option is to use Clip Path:

     

    Hopefully this helps.

    Happy Tweening!

    hi @Rodrigo,

     

    Thank you for this. i've followed your solution and, my animation didn't animate again when my cursor goes back to the text


    https://jsfiddle.net/0uqhdwpb/52/

     

  5. hi @mvaneijgen, Good day.. I'm trying to achieve the change text color effect when hovering on the button. Are these correct?

    fundRaiserColor.to(this.querySelector('.ta-fundraiser__button'), 0.6, {
                    css: {
                        background: '#1DBDC7',                
                        color: 'white'
                    },
                    ease: 'expo.out'
                  });

    Thank you so much.. apologies for not putting it to fiddle though. 

     

  6. Hey @mvaneijgen, Happy New Year

    Me again.. Is there a way to have a multiple button with different animation that's been wrap with 1 each method because they have just the same parent class. Or refactor this or is there any approach to make my code efficient? thanks


    https://jsfiddle.net/z9eLdvgh/20/

  7. Hi @mvaneijgen, thanks for the quick explanation on that arrow function, i've dissected line by line and what's the use and where did i go wrong.. I kind of understand a bit, slowly.

     

    And lastly, i've tried a non-reverse mouse out that has different animation when the mouseleave method is triggered. i've edited your code..

     

    https://jsfiddle.net/359m8qzb/5/

  8. Hi @Jack and @mvaneijgen, good day. i'm just continuing with this thread coz' it's related to the topic. It's a hover but on the "go" area.

     

    So, i'm applying mvaneijgen's code but, the "this.querySelector" is firing an error, "this.querySelector is not a function". Is there something that i lack? thank you so much.. here's my code

     

    https://jsfiddle.net/o1fgb2cx/56/

  9. 1 hour ago, Rodrigo said:

    Yeah IDK about that, must be something else in your HTML/CSS, as you can see in this example everything is working as expected:

     

     

     

    Hopefully this helps.

    Happy Tweening!

    You have some different approach, and it's much cleaner in that way that you just set the animation then chop it into chunks of animation states. thank you for this.. and lastly, what's the use of the console.clear? thanks

×
×
  • Create New...