anaglyph 3d - How to toggle jquery plugin -


$('img').anaglyphimage({   intensity: 20,   quality: 0.9 }); 

this codes making image anaglyph effect, there's no problem here, want remove effect clicking button , adding effect again switch button 3d on/3d off

thanks..

you can use jquery function .toggle funtion work.

 $('img').toggle(      anaglyphimage(){        intensity: 20 ;        quality: 0.9 ;         }     notanaglyphimage(){        intensity: 10 ;         quality: 0.1 ;    }; 

search on internet correct syntax. toggle : api.jquery.com/toggle/


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -