Jump to content
Search Community

Xsander775

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by Xsander775

  1. Hey guys
    Need advice

    There are two timelines, depending on the size of the window, the Timeline starts.

    The difference is only xPercent & yPercent

    Can ? Place xPercent/xPercent in a variable and change depending on the parameter

     

    let sizeBnr = bnr.offsetWidth;
    let pr = gsap.timeline();
    window.onresize = function() {
            setTimeout(function() {
             sizeBnr = bnr.offsetWidth;
             stAn(sizeBnr);
        }, 500);
     }
    function stAn(raz) {
        if (raz >= 560) {
           an1();
        } else if (raz >= 300) {
           an2();
        }
    }
    function an1() {
        pr.add("st1")
            .from('.rpanel', { xPercent: "+=100", delay: 0.5, duration: 0.65, ease: "power2.out" })
    }
    function an2() {
        pr.add("st1")
            .from('.rpanel', { yPercent: "+=100", delay: 0.5, duration: 0.65, ease: "power2.out" })
    }

    Or tell me how to properly separate streams / scripts

  2. 53 minutes ago, Sagar K said:

    Yes commercial help required. For all those points mentioned.. can you quote me?

     

     

    the work is built differently

    1)design is done

    2)working layout, including svg

    3)To show an example or describe a desire

    4)at the end of the animation

  3. Hi

    Help Wanted

    The project has several objects

    1 animated and some static

    Tell me how to get the value box1.x  -  box1.left  or directly from GSAP during animation, and not through Jguery as now.

     


     

    Is it possible to calculate with the help of GSAP intersection objects?

    For earlier thanks for your attention

    Alex.

    See the Pen EZepQG by Alex755 (@Alex755) on CodePen

  4. need help.
    do animation
    stopped on what you need to get a random value on the x axis
    получить  целое число в приделах моего <div>
    my - div width: 250px;
     
    var chel_1 = new TimelineMax();
    chel_1.to(".pi", .6, { xMath.random()});
     
    I want to get the crowd of people who got off the train ...
    If it is not possible to tell from this request.
    I will look for another option solutions.
     

     

    Thank you for your assistance....

×
×
  • Create New...