it took me a few days to learn the real basics, a couple weeks to grasp the intermediate stuff, and I still battle with some of the basic questions and intermediate stuff - and then I post those questions here for teh masters to assist me with
if you only have css+html background it may take you longer as this is more c++ / c# / php-ish style coding but its not terribly tough once you get the basics down.
__________________