pMedia
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by pMedia
-
-
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
-
Thanks Shaun for the reply! Here is my version with slight changes from yours.
See the Pen zYYrRVd?editors=1111 by GTStan (@GTStan) on CodePen
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
- 1
-
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!
-
Hi Jack,
I just tested it on Windows Chrome, IE, and Edge, all have the same problem. Windows Firefox is okay.
Stanley
-
Hi,
In Firefox, the Draggable hitTest() works for DOM elements but not SVG elements.
Thanks,
Stanley
-
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!
Tween HSL color in multiply/divide relative values
in GSAP
Posted
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!