8 Replies Latest reply on Oct 16, 2014 12:15 AM by Bharadwaj

    How to play two different css in a same composition

    bhardwajrahul517 Level 2

      Hi there..!

      This is the code I am using to animate my page background. I've placed the code in Composition ready.

       

      (             this.onMove = function( posX, posY ){

                               timelineControl = Number(posX)*15;

                               console.log(timelineControl);

                               sym.stop(timelineControl);

                                                                     }                    )

       

      Also I am using this code ( this.onMove( e.pageX, e.pageY ); ) onMousemove event.

      Now, the problem is I want different objects to move in different X and Y positions, but I am not able to do so. The code I mentioned above is for stage and it works for the whole composition.

      Anybody please tell me how to do this for the objects alone.


      Thanks..!