https://msdn.microsoft.com/en-us/library/ms605764(v=vs.110).aspx
Code: Select all
$element.velocity('pause');//velocity 1.4
Code: Select all
$element.velocity('resume');//velocity 1.4
Code: Select all
$element.velocity('stop', true); //velocity 1.2.3
VelocityJS 1.2.3 Example JSFiddle: https://jsfiddle.net/AtheistP3ace/znyLtfaf/4/
Code: Select all
Interop.ExecuteJavaScript("$0.velocity('stop', true);", Interop.GetDiv(_frmwrkEl));
^^^ Does not work
When I try it, I get an error in the Output:
Uncaught TypeError: this.div.velocity is not a function
at Vivrant_Particles_WeatherPanel_$l$gc__DisplayClass24_0.$l$gc__DisplayClass24_0_$lPauseStoryBoard$gb__0 (Vivrant.Particles.js?2017911715:2495)
at Delegate_Invoke (JSIL.Core.js?2017911715:9344)
at CSharpXamlForHtml5.js?2017911715:55975
I've also tried, just for debugging, to force-reproduce the velocity and jquery syntax with the following, but it doesn't work:
Code: Select all
Interop.ExecuteJavaScript("$$0.velocity('stop', true);", Interop.GetDiv(_frmwrkEl));
Code: Select all
Interop.ExecuteJavaScript("$($0).velocity('stop', true);", Interop.GetDiv(_frmwrkEl));
In conclusion, I know you said that DoubleAnimation and ColorAnimation are powered by Velocity.JS, how can I access the Velocity functions of my animations?