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

Show/hide Nav bar on toggle of click?

$
0
0

Hi guys,

 

I'm tying to get my nav bar (which is a symbol) to show and hide, basically play then playreverse if click again.

 

so i have the button called menu and the nav bar animation is the symbol navBar,

 

heres my code,

 

 

 

 

sym.$('menu').click(function(){

          sym.play('navBar');

});

 

 

 

 

 

 

 

 

function btnOnOff(){

          if (toggle){

                    toggle=false;

                    sym.playReverse('navBar');

 

 

          }

          else{

                              sym.play('navBar');

          }

}

 

 

 

 

sym.$('menu').click(function(){

          btnOnOff();

});


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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