Jump to content
GreenSock

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

beamish

Members
  • Content Count

    51
  • Joined

  • Last visited

Community Reputation

2 Newbie

About beamish

  • Rank
    Advanced Member

Profile Information

  • Gender
    Male
  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' i
  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.
  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 t
  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
×