jquery - FadeTo not properly working -
I do not have to work as a problem of my little code because I want it to be the first code I'll post. $ (function () {$ (document) .ready (function () {if ($ ( "#skillelementwithme") .hasClass ( "skillelement_collapsed")) {$ ( "#skillelementwithme ") Kklik (function () {$ (" #skillelementvithme ") Ktoggleclass (" Skillelement_aktiv_vithame ", 500); $ (" #skillelementvitheu ") Kfadto (1000, 0);});} else if ((" #skillelementvithme ") Khsclass (" Skillelement_aktiv_vithame ")) {$ (" #skillelementvithme ") Kklik (function () {$ (" #skillelementvithme ") Ktoggleclass (" Skillelement_kollpsed ", 500); $ (" #skillelementvitheu " ) .FadeTo (1000, 1);})}}})}); Now while fadetotransparent work perfectly fine, I can not get Fedeto back to become opaque "skillelementwithyou" class. Perhaps I understood something completely wrong with these actions. I hope...