Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

DD77

BusinessGreen
  • Posts

    171
  • Joined

  • Last visited

Everything posted by DD77

  1. I'm quite stuck here, as I need a class active on the navigation Menu. - the current section should have the relative menu active. is it possible to achieve this? I used to use className - and + but I know is not longer supported. I'm also terrible confused with how the toggleClass/toggleAction works. Please come to the rescue . . .
  2. Thanks for your lecture:-) I removed the getBoundingClientRect and now works.... I hope is now logical what I've done..
  3. Thank you Mikel, as usual you turned a some code into a piss of cake... On my demo, I have multiple buttons, where I can open the modal. Then once opened a simple closing button, with a click outside the modal that could close it too. On your demo I think you misinterpreted my initial question.
  4. I managed to solve an issue and create another one. Now the position on the button is more than one. hellllllllllpppp https://codepen.io/davide77/pen/poNEGEL?editors=1112
  5. Thanks, for your idication, the way I'm thinking is this below... you lost me.. https://codepen.io/davide77/pen/ExNPpXQ?editors=1010
  6. Hello, I'm struggling to make the modal to close onlclick. If I click outside of the modal anywhere, the modal should close. Any help much apreciated.
  7. Hi @mikel, yes, I got the exact code. mmm🤔
  8. @ZachSaucier Hi Zach, I was playing with the requestAnimationFrame, using your demo js code. I keep having Uncaught ReferenceError: requestID is not defined. Any idea why?
  9. DD77

    Draw svg line on scroll

    @ZachSaucier no luck! I changed all plugins, you can see my demo I have an error, looks like the way MorphSVGPlugin loads is wrong
  10. DD77

    Draw svg line on scroll

    @ZachSaucier that happened when I updated the plug in. With the previews GSAP was working fine. Any idea? https://codepen.io/davide77/pen/PoogbEZ?editors=1010
  11. DD77

    Draw svg line on scroll

    @mikel @ZachSaucier Guys, any idea why with the new GSAP3 the plugin MorphSVGPlugin is giving me this error? pen.js:4 Uncaught ReferenceError: MorphSVGPlugin is not defined
  12. DD77

    Draw svg line on scroll

    @mikel hi, thank you, yes helps a lot! I've managed to changes the timing of the balls manually. Is this the best way? https://codepen.io/davide77/pen/PoogbEZ?editors=1010
  13. DD77

    Draw svg line on scroll

    Thank you! I would rather fix this scroll path position firstly. Doesn’t feel right at all. No idea how to fix this. Really appreciate if you could help
  14. DD77

    Draw svg line on scroll

    As it starts, the animation, the first line on top, scrolls in a opposite direction, is quite odd. I've changed the timing and looks much better, but still not quite sure I'm doing it right. Any suggestion? https://codepen.io/davide77/pen/PooLgYd?editors=1010
  15. DD77

    Draw svg line on scroll

    Thank you so much! Looks much better! DO you know why the icons(balls) aren't showing correctly? and the first parth of the line is animating still in a opposite way? https://codepen.io/davide77/pen/RwwdEXm?editors=1010
  16. HI All, I was hopping to grab some of your amazing brain as I need to make this animation work like a charm I have a line that should animate while scrolling down. I'm kind of there pretty much, but I have the line that animates in the opposite way!!! So, line animates balls(icons) animates with it. Anyone able to explain what I'm missing? Thank you for any help you can offer!!!
  17. any reaso why the TweenMax.to(window, 1, { scrollTop: theOffset.top - 56 }); isn't working now?
  18. Hi YA, I'm having so difficulties to make this functionality to work smoother and better. I need auto hight as my content is quite dynamic. When I click the height of the accordion fires but doesn't have and smoothens on the animation. What am I missing? Also is it done all ok overall? Would you change anything in there? Thanks, D $(".accordion-item .button").click(playAnimation); function playAnimation(event) { event.preventDefault(); var $this = $(this).parent(); var $thisContent = $this.find('.accordion-content .article'); TweenLite.to($this,.3, {className: '-=expanded'}); TweenMax.to($thisContent, .3, {autoAlpha:0,ease: Sine.easeInOut, onComplete:function() { TweenMax.to($('.accordion-content .article'), .3, {height: "0",ease: Sine.easeInOut}) } }) if (!$this.hasClass('expanded')){ var self = this; setTimeout(function() { theOffset = $(self).offset(); $('body,html').animate({ scrollTop: theOffset.top - 56 }); }, 310); TweenMax.to($(".accordion-item"), .3, {className: '-=expanded', ease: Sine.easeInOut}) TweenMax.to($this, .3, {className: '+=expanded', ease: Sine.easeInOut}) TweenMax.to($('.accordion-content .article'), .3, {height: "0",autoAlpha:0, ease: Sine.easeInOut}) TweenMax.to($thisContent, .3, {height: "auto", ease: Sine.easeInOut, onComplete:function() { TweenMax.to($('.accordion-content .article'), .3, {autoAlpha:1,ease: Sine.easeInOut}) } }) } }
  19. @mikel Sure, what's on line 26? is commented off!
  20. Ok, managed to do it. what do you think? https://codepen.io/davide77/pen/PMNaJg?editors=0010
  21. @mikel thank to you. Please Mikel, would you be able to direct me on how to tooggle the parent "accordion-group"? so I can close and open it?
  22. @Mikel thanks, really helpful, this helped me a lot. I'm not manages to: - add class to parent "expanded" -add function that move to top of the list the clicked element. todo: make it better, smother and perhaps without a feeling that the clicked one jumps to the top. @mikel what do you think? https://codepen.io/davide77/pen/oKxpJw
  23. @ZachSaucier I think i could achieve it with my setup. would you be able to help?
×