Jump to content
Search Community

marksyzm

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by marksyzm

  1. 8 minutes ago, OSUblake said:

    Still doesn't seem like a good idea as you might have a hover animation changing the saturation from some value to 0. It needs some sort of explicit value, like null or false.

     

    Would you likely go with null/false then?

     

    2 minutes ago, OSUblake said:

    Anything that GSAP touches will have a "_gsTweenID" property, so you can filter it out that way.

     

    Very helpful, thank you

  2. 1 minute ago, OSUblake said:

    Still doesn't seem like a good idea as you might have a hover animation changing the saturation from some value to 0. It needs some sort of explicit value, like null or false.

     

    Urgh... yes, that's right. Would there be a clearance property that someone might be able to use if they wanted to manually remove these? Someone might have 2 of their own filters added, so it would be good to access the ones that have been tweened and remove them at will. I guess someone could just perform an array diff or something though to get around it, so it's likely a code solution is better for this (rapidly becoming more) particular scenario. 

  3. Just now, macguffin said:

    Hi tried onStart but it didn’t work as I think it was setting the resolution before the filter had been created. 

    :-)

    Yeah I just gave that a go in hope but it doesn't seem to be a live property that can be set once the filter is initialised, rather annoyingly.

    5 minutes ago, OSUblake said:

    How would that work for something like the color matrix filter?

    Good point - I was thinking for the standard stuff like saturation then that's simple enough but then what's on/off once that's done? I'd say just do it for the presets i.e. once saturation is 0 remove and if it's a custom one advise to manually remove the instance yourself.

  4. Ideally many would like this control over all the filters of course; I put in a mention that the filters might want to be removed from the container's filter array once complete if the value is under their null equivalent i.e. blur = 0.

     

    The example above also shows this resolution being set `onComplete` but I would have thought it should be set at the start of the tween? 

×
×
  • Create New...