Jump to content
Search Community

bootstrap007

Members
  • Posts

    58
  • Joined

  • Last visited

Everything posted by bootstrap007

  1. Thanks, @akapowl this is exactly what I am looking for. ?
  2. Hi All, As you can see in the Codepen demo that the hamburger menu is working fine if user clicks on the menu icon. However, what I am looking is to close the burger menu with the same reverse animation if user clicks on any of the hyperlinks before proceeding to the nextpage/link. Can anyone please let me know how to do it? menu test (codepen.io) $('.hamburger').on("click", function(e){ $('.hamburger.active').not(this).removeClass('active'); $(this).toggleClass('active'); }); var $hamburger = $('.hamburger'); gsap.set('.line01',{x:40}); gsap.set('.line03',{x:-40}); //gsap.set('.navigation',{xPercent:-50, yPercent:-50}) gsap.set('.navigation li',{x:0, opacity:0}); var hamburgerMotion = gsap.timeline(); hamburgerMotion.to('.line03',0.4,{x:'-=40'},0) hamburgerMotion.to('.line01',0.4,{x:'+=40'},0) hamburgerMotion.to('.menu',0.4,{autoAlpha:1},0) hamburgerMotion.staggerTo('.navigation li',0.4,{y:-30, opacity:1, ease: "sine.out"},0.2,0.5) //hamburgerMotion.to('.navigation li',1,{marginBottom:'40px', ease: Power1.easeOut}) hamburgerMotion.from('.getintouch',.8,{y:30, opacity:0, ease: "sine.out"}) hamburgerMotion.reverse(); $hamburger.on('click', function(e) { hamburgerMotion.reversed(!hamburgerMotion.reversed()); }); $('.menu-links').on("mouseover", function (e){ gsap.to($(this), .4, {x:20, ease: "sine.out"}); }) $('.menu-links').on("mouseout", function (e){ gsap.to($(this), .4, {x:0, ease: "sine.out"}); }) $(".hamburger").on("click", function (e) { if ($(this).hasClass("active")) { $(".cursor-follower").addClass("reverse"); } else { $(".cursor-follower").removeClass("reverse"); } });
  3. OSUblake One more question on this topic. How to control the speed of each slides/images? In the codepen demo the speed looks perfectly fine. But when I added this to the project then all the images/slides are sliding away on a single scroll. Any solutions for that? Possible to slow down the sliding speed on scrolling?
  4. OSUblake Added the CodePen Demo and as you can see the Error in the console.
  5. Hi All, I know this might be very simple question for most of you to answer. But I couldn't find any proper answers from the search. The issue is that I am getting "Uncaught SyntaxError: Identifier 'tl' has already been declared" error If I have multiple timelines. How to fix it? https://codepen.io/bootstrap007/pen/dyRyYWg The below is the code: gsap.registerPlugin(ScrollTrigger); let container = document.querySelector(".portfoliomob"); let tl = gsap.timeline({ scrollTrigger: { pin: true, scrub: 1, scroller:'[data-scroll-container]', trigger: container, end: () => container.scrollWidth - document.documentElement.clientWidth }, defaults: { ease: "none", duration: 1 } }); tl.to(".parallaxhead", { x: 300 }) tl.to(".panelmob", { x: () => -(container.scrollWidth - document.documentElement.clientWidth) }, 0) tl.from(".secondAn", { opacity: 0, scale: 0.5, duration: 0.2, stagger: { amount: 0.8 } }, 0); tl.from(".firstAn", { duration: 1, opacity: 0, scale: .5, scrollTrigger: { trigger: container, start: "top 90%", end: "bottom 10%", toggleActions: "play none none reverse" } });
  6. Thanks OSUblake & GreenSock (Jack) I have actually used a dummy tween before the next animation happens/take place and it was working fine. But then I thought there must be a proper way to do it something like a delay function for scrolltrigger. Thanks to you both.
  7. Hi, As you can see that the yellow color box is animating to the screen from the left side then the Green color box came on top of the yellow box. But the green box is immediately animating away from the screen without staying there for few seconds even if the user scrolls. So is there a delay function even if the user scrolls continuously the green box should stay on top of the Yellow box for some time then it can animate and go away from the screen. Any help would be highly appreciated. https://codepen.io/bootstrap007/pen/bGWJEWX Thanks
  8. Hi, As you can see from the CodePen demo that ScrollTrigger animation (two boxes in Yellow and Green color) is not working after adding LocomotiveScroll. Can anyone please let me know what's wrong with the code. https://codepen.io/bootstrap007/pen/MWmxJog Thanks
  9. OSUblake Thanks, It's working fine now. Just a quick question. How can I make those boxes exactly in the center of the viewport by using percentage value instead of PX?
  10. Hi, As you can see from the Codepen demo that ScrollTrigger animation is visible on the viewport only after scrolling down the page. Please refer to the attached screenshot for reference. How to make the viewport stay remain in the same position until the animation completes and clearly visible on the viewport then the page can scroll down further like in ScrollMagic? Same like the (https://scrollmagic.io/) Hat and then the magic stick is coming down with some effect then the text animation then after that only the viewport scrolls down.
  11. Ah, Got it. Thanks mikel for the help and support?
  12. Thanks for the demos @mikel I can adapt few things from both and make it. One last question on this topic. How can I make the scrolling till the right side of the screen in the below codpen: Please check the attached screenshot where it is marked in red color is empty and the text scrolling gets disappear there. https://codepen.io/mikeK/pen/9ce005bdad509ae1fed02cc107ad4421
  13. Hi All, I have seen the below demo in CodePen that was created by @mikel . I am wondering that if possible to have width auto, instead of fixed width for each boxes? Also, If I will switch the Codepen mode to full screen then the box items are getting disappear even before reaching to the right side corner. How can I make it disappear only after passing the right side corner? Lastly, possible to make the animation pause/stop on mouseover? https://codepen.io/mikeK/full/oNXoOBq Thanks
  14. GreenSock That was just a simplified version of code that I have mentioned above to debug. Thanks for the quick response and support. Really appreciate it.
  15. Thank you both Visual-Q and GreenSock This one is working fine - .add(middle, "+=2"); Instead of this syntax - .add(middle(), "+=2");
  16. Hi All, Can you please check the below code and let me know that why the delay function for the "middle" timeline is not working? I have followed the Gsap documentation and added the second timeline to the master timeline same as the below. function intro() { const tl = gsap.timeline(); tl.to('.head', 1, {x:'30%', opacity:0}); tl.to('.btn', 1, {y:'50%', opacity:0},"-=.2"); } function middle() { const tl = gsap.timeline(); tl.reverse(); tl.fromTo(".holder", {yPercent:-100}, { duration: 1, yPercent:0, stagger: .5}); tl.fromTo(".holder img", {yPercent:100}, {duration: 1, yPercent: 0, stagger: .5}, "<"); } const master = gsap.timeline(); master.add(intro()) .add(middle(), "+=7");
  17. @Cassie Thanks for the reply. I was wondering that if possible to add the same image effect to the swiper slider using GSAP? Thanks
  18. Hi, How to add an image transition effect the same as in the below link to the CodePen demo using GSAP? I am talking about the image only not the text effect here. Is it possible to add the same image effect to the swiper slider? https://tympanus.net/Development/TextTrailEffect/index2.html Thanks
  19. masks/clip paths - most of the browsers will support this clip path? Do you have any simple reference for masks/clip paths? Thanks
  20. I think only the stroke is animating but not the fill. Correct?
×
×
  • Create New...