Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

timeline trigger code not working with imported symbols

$
0
0

I have imported a pie chart animation symbol into a new project. Whilst the pie chart animation is working, the number counter that counts from 0-60% has stopped working. The code below was entered into the symbols timeline as a timeline trigger with no effect after it was imported. Any suggestions would be a great

 

// insert code here

/////// timeline trigger ///

// get elements

        var elementTxt = sym.$("Counter");

 

 

// get timeline symbol duration

       var dur = sym.getDuration();

 

 

// create a tween {from} {to} somevalue using jquery animate

$({someValue: 0}).animate({someValue: 60}, {

      // match the animate duration property to the length of the timeline animation

          duration: dur,

      // called on every step

             step: function() {

 

 

                         // update the element's text;

elementTxt.text(Math.ceil(this.someValue)+"%");

             }

});

//////////// end timeline trigger /////////////


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>