Jump to content
Search Community

beamish

Members
  • Posts

    51
  • Joined

  • Last visited

beamish's Achievements

  1. Thats what i thought too. Thanks for your help.
  2. Thanks, that's great, but what do I do if I also need more complex transformations such as rotation and scale? is there a way to do this without complex calculations of the transform origin etc.? for example:
  3. Hi, Is it possible to exclude child elements from being affected by a transform? specifically in the linked codepen: is it possible that the div containing the 'X' will not be moved even thought it's parent is being moved? Thanks ! Elior
  4. Hi Jack, Thanks for the quick reply, didn't expect on the weekend, sorry if I disturbed you. I decided to avoid the 'autoScroll' option at the moment, it isn't quite necassary for me at the moment, and things seem to work well now, Thanks again, Elior
  5. Hi, I'm using GSAP's Draggable, and I noticed that while the users starts dragging, a hidden ghost div is appended to the div which contains the dragging element. This is what is looks like: <div style="visibility: hidden; height: 1px; top: -1px; pointer-events: none; position: relative; clear: both; width: 585px;"></div> Is this necassary? Can I eliminate this div OR eliminate it's width (because it widens the container div incorrectly) ? Thanks, Elior
  6. Hi, I have many TimelineMax animations either running at the same time, or not running at all; is it possible to create an event that will be called everytime any timeline is ticking, and get the timeline that is ticking in that event? an alternative would be to set a simple javascript setTimeout call but only if I can tell if there are currently no running animations; is it possible to check if ANY timeline is currently running? Thanks, Elior
  7. Hi Carl, Once I remove the 'add()'s the problem is resolved, so it seems that these 'add()'s were causing it... I don't know why there's a difference with or without these 'add()'s, but it doesn't really matter as long as there's a solution Thank you !!! Elior
  8. OK, I gave it a try and here is a link to the pen code which seems to show the problem: http://codepen.io/beamish/pen/rWMzJy there are 2 timelines for the same div; in the end of the JS code I first seek the 0 time of the second timeline where the autoAlpha is 1 - but immediately after that I seek the 0 time of the first timeline where autoAlpha is 0 and try to play it ... why then do I see the div with full opacity right at start, and why can't I play the first timeline? Notice that if I comment out 'tl2' then 'tl' plays well; if I comment out just the 'seek' call to 'tl2', so 'tl2' is only created but never used - the same problem remains. If I change 'autoRemoveChildren' to 'true' then it works, but I don't want this because I need to rerun the timeline again and I don't want to recreate it each time I need to run it... Thanks !!!
  9. Hi Jack, *** please see the next message from me in this topic, where I managed to create a pen the shows my problem, thanks *** Thank you for your kind motivation to help I understand it's difficult to understand the situation, it sounds simple but it isn't. what happens is that an array of data items are tranlated by javascript code into the properties of the tweens creating the timeline. This happens for 2 arrays creating 2 timelines for the same div. at first only the secondly created timeline is working right; however if I re-run the code for the first array it both work. the strange thing is that the timeline of the first array IS created even when it does'nt work as expected, I can see it has children reflecting the relevant props. This timeline has 2 tweens, the first with opacity 0 and the second with opacity 1. when I seek and pause to time 0 then the div is properly displayed with autoAlpha 0; however when I seek and pause even to 0.01 - I see the full opacity of 1, and not a slight change above 0 as expected (the second tween's time is right, set to 2.0, and the first is 0). Perhaps this can give you a clue as to where I should look for to find the cause of the problem? Thank you so much again, Elior
  10. Hi, Thanks, The point is that I need two separate timelines (because not always will the last tween of the first is the same as the first tween of the second).. Elior
  11. Hi, I'm facing a problem in a complicated web application which is difficult to isolate into a pen, so I was thinking of just sharing the situation and perhaps getting some possible clues as to what to look for to understand why this problem happens: I have one DIV with 2 TimelineMax timelines. Each timeline is made of two tweens of this DIV. In the first timeline the tween starts at autoAlpha 0 at the first tween and ends at autoAlpha 1 in the second tween, and in the second timeline the situation is the opposite: starting from autoAlpha 1 and ending at 0. The duration of the two timelines is different: the first is 2 seconds, the second is 1.5 seconds. Other than that there is nothing else. Now I create these two timelines. The second one runs perfectly well. The problem is in the first: it "jumps" directly from autoAlpha 0 to 1 without any smooth chage between the two states. If I recreate the first timeline then it works well with smooth changes (and the second one is also smooth as it was before). Any suggestions as to where to look?... Thanks ! Elior
  12. Hi PointC, Thanks ! I've added some code to the pen you suggested to add the rotation functionality: http://codepen.io/anon/pen/MeYdXE Cheers, Beamish
  13. Hi I need the origin to be in the top left because I'm adding functionality that enables the user to resize the element and the resizing should not be from within the center of the element but from the top left corner. The user is also able to rotate the element but the rotation is more intuitive and friendly when originating from the center of the element and not from the top left corner. I hope this clears things... Thanks for showing interest Beamish
  14. Hi, Is it possible to make an element that has a transform origin set to 'top left' rotate (using Draggable rotate) around the element's center, as if the transform origin was originally set to 50% 50%? I was thinking perhaps to temporarily changes the transform origin yet keeps the element in the same position in the onDragStart event and in the onDragEnd event to restore the 'top left' origin, is that possible? Thanks, Elior
×
×
  • Create New...