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

Is it possible to use symbols in an array rather than elements?

$
0
0

Hi, see below code, I wish to fade toggle symbols rather than elements, so how would I adapt the code below?

 

var headers = sym.getSymbol("Headers").$(".press_head,.live_head,.shop_head,.videos_head,.releases_head ,.links_head,.contact_head,.home_head,.news_head");

var contents = sym.getSymbol("Contents").$(".press_content,.live_content,.shop_content,.videos_content,. videoimages_content.releases_content,.links_content,.contact_content,.home_content,.news_c ontent");

 

AdobeEdge.reset = function(){

 

headers.each(function(){

$(this).fadeOut();

})

 

contents.each(function(){

$(this).fadeOut();

});

 

function isSame(myObject,str){

var obj = $(myObject)[0].classList

for (var i=0;i<obj.length;i++){

if(obj[i]==str){

return true;

}

}

return false;

}

}

 

thanks!


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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