I need to reverse of the following code. How can I make the animation run if the width is NOT 500px.
$(\".image-div\").not(this).each(function() { if ($
!=
For example,
if ("apple" != "orange") // true, the string "apple" is not equal to the string "orange"
Means not. See also the logical operators list. Also, when you see triple characters, it's a type sensitive comparison. (e.g. if (1 === '1') [not equal])
if (1 === '1')