Share Posted June 30, 2016 Hello guys,I'm experiencing a problem when using TweenMax and Backbone.I currently have a view that set on some tween. The first time I instantiated it, like var firstView = new MyView({...}) my object get transformed like this: _gsTweenID:"t5" x:-20 y:0 and it works just as wanted, but the problem appears when I create the second instance like this: var secondView = new MyView({...}) At this point the second view works perfectly but the first one just not tween anymore, I took a look at the object and figured out that they have the same gsTweenID _gsTweenID:"t5" x:-20 y:0 I really have no idea from where the problem comes, so if you have any clue it would be so nice ! Link to comment Share on other sites More sharing options...
Author Share Posted June 30, 2016 Ok sorry guys for this useless topic, I didn't find the way to delete it.In fact, I just figured out that attributes are share between instances of the view in backbone so I need to set them in the initialize. That why object get the same gsap ID.Cheers 2 Link to comment Share on other sites More sharing options...
Share Posted June 30, 2016 No problem, thanks for letting us know. I was scratching my head Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now