Jump to content
Search Community

mrksmts

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by mrksmts

  1. Hi,

     

    Is it possible to animate all elements and get different end values from each element, as example something like:

    TweenMax.fromTo('#logo div', 1, {backgroundColor: "#ff0000"}, {backgroundColor: this.data('bgColor')});

    Where the "this" is each div in the #logo element.

     

    I could achieve this with a for loop but I was wondering if there was a way to one line this.

     

    Cheers,

     

    Mark

    • Like 1
×
×
  • Create New...