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
Post a Comment