MSCAU Posted May 28, 2021 Share Posted May 28, 2021 Following another post by @OSUblake in these forums using the most basic Vue setup, I can see that an array in Vue can be tweened with GSAP, but it's pretty useless unless the DOM is updated too with Vue. Is something in Greensock preventing my CodePen {{ arr }} from updating during the tween? See also: See the Pen RwpLpWv by MSCAU (@MSCAU) on CodePen Link to comment Share on other sites More sharing options...
Solution OSUblake Posted May 28, 2021 Solution Share Posted May 28, 2021 Vue cannot detect when a value changes inside an array. https://vuejs.org/v2/guide/reactivity.html#Change-Detection-Caveats To trigger change detection you would have to actually copy and set a new array. See the Pen 5b482f0158ae8cadb821e4f2c3adebf8 by osublake (@osublake) on CodePen 2 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