Jump to content

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


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

1,435 profile views

pMedia's Achievements

  1. Thanks for the quick reply and the workaround solution! I hope this function based value solution will also work for tweening css variables. One question, are the two arguments (i, el) of the function standard? I assume el is the tweening object, what about the i? Is there a documentation page for this function based value function? Thanks!
  2. Hi, I have seen the example on your site on tweening hsl color with += and -= relative values. Is there a reason that *= and /= relative values are not implemented? Here is an example. We wanted to reduce a few objects' brightness by 50% of the current value, no change to hue and saturation. We entered the fill tween value as hsl(+=0, +=0%, /=2%). The H and S relative values worked but didn't work for L with /=2%. We also tried *=2% to double the brightness, didn't work either. In both cases, the L values were tweened to 2% instead. Thanks, Stanley
  3. Thanks Shaun for the reply! Here is my version with slight changes from yours. https://codepen.io/GTStan/pen/zYYrRVd?editors=1111 As you can see in the console, there are two "Callback test". I found the problem, it is is line 14. It is solved with tl.pause(); without the "label1". Thanks, Stanley
  4. Hi, I just noticed a problem with the timeline's pause/resume functions with addCallback at the same location. For example, at "Label1" add a callback and pause at the same location. When the playhead stop at "Label1", the callback gets executed. The problem is when resume() is called to resume the playing, the same callback at "Label1" gets executed again. Is there a way to call resume without executing callback at the resume location? Thanks!
  5. Hi Jack, I just tested it on Windows Chrome, IE, and Edge, all have the same problem. Windows Firefox is okay. Stanley
  6. Hi, In Firefox, the Draggable hitTest() works for DOM elements but not SVG elements. Thanks, Stanley
  7. Is there a way to limit the scope of TweenMax.pauseAll() and TweenMax.resumeAll() to each loaded swf. I have a player main swf that loads and plays other sub swfs. Each sub swf uses pauseAll and resumeAll to control a bunch of TweenLite/TweenMax and TimelineMax tweens. The pauseAll/resumeAll work well and work as expected when the sub swfs play as stand alone. When they are loaded into the player and play within the player, the pauseAll/resumeAll functions would pause/resume all tweens in all loaded sub swfs at the same time. That's because pauseAll/resumeAll are static functions, that's why each call of these functions will globally apply to all loaded sub swfs. Is there a way to limit the affect of pauseAll/resumeAll to each local sub swf only? Thanks in advance for your help!