FuncUnit.prototype.css  function     

Gets a css property from an element or waits until the property is a specified value.

// gets the color
S("#foo").css("color")

// waits until the color is red
S("#foo").css("color","red") 
func_unit.css(prop, val, callback) -> String|funcUnit
{String}

A css property to get or wait until it is a specified value.

{optional:String|Function}

If provided uses this as a check before continuing to the next action.

{optional:Function}

a callback that will run after this action completes.

{String|funcUnit}

if the val parameter is provided, returns the funcUnit selector for chaining, otherwise returns the css of the selector.

© Jupiter IT - JavaScriptMVC Training and Support