I have added class to to my image using jquery in jquery
$('.myimage img').addClass('img_opacity').css({"position":"absolute","z-index":"999","opacity":"0"})
Now I want to shuffle opacity of img_opacity class from “0” and “1” with jquery variable myvar. Values for this jquery variable are opa1 and opa2. How can I shuffle opacity using if else in my above jquery script.
Not sure i understand your question, but maybe thats fiting your needs: