Jump to content
Search Community

coolester

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by coolester

  1. 1- I'd still recommend separate variable names for clarity. But maybe that's just me.

    2- I'd also prevent the start time from being greater than or equal to the end time.

     

    I will definitely do that in my real project. Thank you PointC. (I was looking for you in point a and b but there you are. :D)
    • Like 1
  2. I'm sorry to ask an unclear question, I don't sleep properly and when I do so, my English doesn't get any better, does it? :)

    I created a pen actually, here:

    See the Pen gmJxpY?editors=0010 by coolesterman (@coolesterman) on CodePen

    Explanation: Effect in and effect out only affect the blue square.

    every time you click on "create/update animation" button, every tween related to the blue square will be removed from the time line and the state of the blue square will reset, and then it gets two brand new tween for coming in and getting out.

     

    Problem: OK what is the problem now? if you select the "left" for the effect_in and hit "create/update animation" you will see the Blue Square immediately jump to the left, so we can see the tween affect it, but then if you select "fade" from the effect_in and hit "create/update animation" to create new animation, you'll see that the Blue Square doesn't get the opacity of zero at the start point. When I hit the "play" button it will work as expected. But why can I see it at the first place?

     

    Best regards :)

  3. When the animation is paused and I create a tween with a button, I can't see the tween immediately, the tween will effect the element when I play obviously, but is there any workaround to see the effect even if the animation paused. example: when set the opacity of an element to 0 with a tween the I can still see the element, when I play the animation it will disapear immediately.

    Sorry if this question answerd before.

    • Like 1
  4. Hello again my friend, Manfred. could you look at this pen:

    Here I've got a tl (TimelineLite) and I have a tween for the pink square already, when you hit 'create/update animation' , a new tween will add to blue square, but before adding a new tween I need to delete an already attached tween to blue square, and then create a single new tween for it. So at any time there is just a single tween attached to blue square, its either 'fade' , 'left' or 'right'. How can I achieve this?

     

    sorry to bother, and thank you for the time you spend to see my example.

  5. Hi Manfred, Thank you so much. I didn't know I could use 'TweenMax' even though I add the animation to a timeline, Very helpful thank you.

    But there is a problem, If I hit the kill button in your fiddle, it will kill the tween only if the timeline is playing, and if it is completed the kill button seems to do nothing. Why is that?

×
×
  • Create New...