css3 - jQuery's CSS property -


this may stupid question, i'm new jquery , not understanding css property thought was,

it's blowing mind that

-webkit-transform: rotate(30deg);  

and

$("#cloud").css({     "top" :  + 100 + "px",       "left" : "100px"}); 

work.

but when try , reuse same idea here,

$("cloud").css({     "-webkit-transform" : "rotate(30deg)"}); 

it doesn't work. seems though using exact same syntax.

i apologize stupid question.

~austin

it works: http://jsfiddle.net/nzmfw/ messed selector:

$("cloud").css({"-webkit-transform" : "rotate(30deg)"}); 

should :

$("#cloud").css({"-webkit-transform" : "rotate(30deg)"}); 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -