Jump to content
Search Community

Nikhil009

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by Nikhil009

  1. Hey Zach,

     I have read the documents and man I am working on old ones since long,

    Thank you very much for showing me De Way :):)

    With that I have made improvement in my code as well as changed it to make it simpler and voila it is working as expected.
    Below is the code pen if you any of you want to have a look and see the results. 

    The only thing i am trying to figure out is that jquery does not convert the
    css- transform: translate(100%) as it is, but it converts to pixels but all is good.

    Thank you very very much.


    See the Pen mdPqWjy by nikhil-ladhani-nl (@nikhil-ladhani-nl) on CodePen

     

    • Like 1
  2. Hello,

    Thank you, yepp i am able to see that mainly but chars = splitText.lines; I wanna use the chars as the variable instead of the $slides.  Whereby 

     

    var $slides = $slider.find(".slider-item");

    var $prevSlide = $slides.eq(prevSlideID);
    var $currentSlide = $slides.eq(currentSlideID);

    TweenMax.to($prevSlide, time, {
            top: "-100%"
          });

    If you see the code above the tween is occurring on the word but as the whole item not the specific line like the on you showed me on developer tools,
    and if is replace the $slide with chars the .eq function does not work, because i want to add staggering on the text as well

    Any chance you might be knowing how handle this

     

  3. Is there a way to achieve the effect of mouse hover like on the website below:

     

    https://studiomaertens.com/about

     

    if you hover on the Work or About link, there is a magentic effect on it as well as the cursor automatically scales and positions itself in center with the link,

    So far ive managed to combine two different examples together, the magnetic effect works but the cursor doesnt align properly with the

    icons

     

     

    Might there be a way to make a similar effect on the Studiomaertens website above.

    Kindly let me know

    Thank you

    See the Pen by pen (@pen) on CodePen

  4. Hi Zach,

     

    Ahhhh i see i see, it gets confusing whenever i try use scroll animation especially the calculations, offset top, scroll top, outer height , inner height, still catching up on that but I am slowly understanding the concept behind what you sent.

     

    But i think im making it look more complicated than it seems because im confusing myself, but will learn.

     

    Thank Very Very Much again 🙂.

  5. Hi,

    Is there any way to achieve this type of animation while scrolling.

     

    Im getting confused on the part where when if you scroll down new text-1 appear from bottom and current text-2 exit to up and reverse when scroll back up text-2 appears from top and text-1 exits bottom

     

    https://www.apple.com/nz/ipad-pro/

    1303183993_iphone(1).thumb.png.9df752d5ae63a26da955184b092652fa.png

     

    The above is part of the section whereby when you scroll up the content fades down and when you scroll down content fades up

     

    Similar to the above website, please kindly help me.

     

    Thank You

     

  6. Thank you, Thank You very much, I have gotten and yet learning more on the concept of how to animate but you have guided me to what I wanted,

     

    I shall use the .play from now on to animate instead of the scroll listener  🙂

     

    Happy and glad to use GSAP for animations as well!

  7. Hey Zach, 

     

    Thank You for the welcome!

    I am very new to gsap making it abit otugh for me to understand some stuff you said about the timeline controls although I have managed to replicate it on codepen

     

    As you can see at first the photobio title appears first rather than the top two titles and then if scroll directly it kinda breaks the gsap and doesnt animate properly, I think it might be because of the revert, as well as invisibilty hidden.

     

    See the Pen JjdZbXE by nikhil-ladhani-nl (@nikhil-ladhani-nl) on CodePen

     

    Hope this helps

  8. Hi, I am looking for a solution that combines the two different text animations like on the websites below, I am also using fullpage js.

    https://wirewerks.com/en/about-us/

    https://21-capital.com/

     

    So on each index of the page I am using if function for the animation, although without reverting the splittext it creates a duplicate each time i scroll to the specified animation page as it runs it again and again, that is why i had to revert it.

     

    Sorry for not being able to replicate the code work on codepen.

     

    var mainTitles = new SplitText('.strength-title h1, .free-session-title h1', {
                         type: "lines",
                       linesClass: "line line++"
                    });
                 $('.strength-title h1 .line , .free-session-title h1 .line, .photobio-title h1 .line').wrap('<div class="line-wrapper">');


    TweenMax.staggerFrom(
                         mainTitles.lines,
                         2, {
                             yPercent: 100,
                            ease: Power4.easeOut,
                             delay: 1
                        },
                         0.25,
                         splitRevert
                     );

                     $('.strength-title h1, .free-session-title h1').css('visibility', 'visible');
            
                     var tp = gsap.timeline(),
                        mySplitText = new SplitText(".photobio-title p", {
                             type: "lines,words"
                        }),
                         chars = mySplitText.lines; 
            
                     tp.fromTo(chars, 1.5, {
                         opacity: 1,
                         y: 0,
                        ease: Power4.easeOut,
                         stagger: 0.15,
            //         }, {
            //             opacity: 0,
            //             y: 100,
            //             ease: Power4.easeOut,
            //             stagger: 0,
            //         }, "+=0");
            //
            //         function splitRevert() {
            //             $('.strength-title h1 .line , .free-session-title h1 .line , .photobio-title h1 .line').unwrap();
            //             mainTitles.revert();
                         $('.photobio-title p').css('visibility', 'hidden');
                        mySplitText.revert();
                     }

     

    This formation is not currently working smoothly for me, if anyone has a possible solution please kindly do help me.

    Thank You

×
×
  • Create New...