How to get the value of CSS style using jQuery

I doubt css understands left by itself. You need to use it specifying position. You are using .css() correctly

position: relative/absolute/whatever;
left: 900px;

heres a fiddle of it working

https://jsfiddle.net/gFLZe/

and without the position here’s what you get

https://jsfiddle.net/gkkm5/

Change your if statement to be like this – with quotes around -900px

var n = $("items").css("left");

if(n == '-900px'){
    $(".items span").fadeOut("slow");
}

https://jsfiddle.net/gFLZe/1/

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)