Jump to content
GreenSock

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

donum

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Leipzig

donum's Achievements

2

Reputation

  1. Hi acidking, thanks for your input. We already had a discussion about autoKill in post #8/#9 in this thread. @Jack Happens. Now it works like a charm! You can see it in action here: http://jsfiddle.net/4UcfT/13/ Does exactly the right thing. Thank you very much! Cheers, Daniel
  2. Hi Jack, thanks for the update. I tried it out and it didn't work on my local example. Same is for the jsfiddle example, I updated it with the 1.7.2 code: http://jsfiddle.net/4UcfT/11/ It still doesn't fire the onComplete event if you click on "Headline 2". Thanks, Daniel
  3. Hi, thank you for the quick reply! @Jonathan Thanks for fixing. I fixed it, too, but it seems like jsfiddle didn't save it. I'm not familiar with the tool so it was my mistake. I updated the jsfiddle so that the demo works. http://fiddle.jshell.net/4UcfT/10/ http://fiddle.jshell.../4UcfT/10/show/ 100% agree. I really want to avoid this behavior (btw. jquery.scrollTo acts like that). I remember the moment when I realized your great API doesn't do it. autoKill:false will enable this behavior again so I will just wait for the next update. Absolutely! Exactly what I had in mind. Thank you very much! *Edit* Awesome to now understand why it behaves like it does. There's a very good reason for it to do so. Would be great if you could add this edge-case though, because it's not unlikely to run into it. You both have a good weekend! Edit: Just opened a Ticket on github: https://github.com/greensock/GreenSock-JS/issues/28 Hope that makes things easier/more organized. Cheers, Daniel
  4. Hi Jonathan, thanks for your reply. As far as I understand Jack suggested the exact opposite to LukeWilson. The scrollTo plugin seem to not have a onComplete method. I created a testcase on jsfiddle. *jsfiddle updated*: http://fiddle.jshell.net/4UcfT/10/ http://fiddle.jshell.net/4UcfT/10/show/ If you click on Headline 1, it will scrollTo Headline1 and fire the onComplete event. If you click on Headline 2, it will go as far as it can to that headline, but it won't reach the exact position and therefore won't fire the onComplete event. For me this seems like a bug in scrollTo. If scrollTo reaches the end of the browser window, it's obvious that the whole job is done, isn't it? Maybe I'm missing something. Thanks, Daniel
  5. Hi, first of all, thank you very much for this awesome piece of software. It's a pleasure to use! I have the same problem so I just use this thread. I'm using scrollTo to go to the bottom of the page and I have a status variable "going_to_anchor" which prevents other parts of my app from interacting while the scrollTo animation happens. However, the onComplete event doesn't get fired. I think the problem might be that the scrollTo can't scroll to the target element since it's the end of the page and the scrolling stops before the script has reached the target element. I would think the script would understand what just happened and just fires the onComplete event. Here's , my code: var going_to_anchor=false; $("a#myanchor").click(function(e){ e.preventDefault; going_to_anchor=true; TweenLite.to(window, 0.75, {scrollTo:{y:$("#contact_form").offset().top}, onComplete:function(){ console.log("complete"); going_to_anchor=false; } }); $(this).fadeOut(); return false; } When I change the target element from #contact_form to another element (which is higher up the page) then it works. So I think this is a bug. What do you think? Thank you! Daniel
×