View on GitHub

Jquery-cssalias

A jQuery Plugin to aliasify your CSS properties.

Download this project as a .zip file Download this project as a tar.gz file

What is jQuery-cssalias plugin

It is a jQuery Plugin to aliasify your CSS properties.

How To Use

//Add an alias
$().cssalias("add", "background", ["background-color", "background-attachment"]);

//Get "background-color" and "background-attachment" properties of #element
var styles = $("#element").cssalias("background");

//Delete an alias
$().cssalias("delete", "background");

Aliases Support

For now there is a file with all the CSS properties grouped by category (taken from w3schools). Download that file.

Import custom aliases

You can simply create a new file with all your custom aliases.

//Add an alias
$.fn.cssalias("add", "bob", ['background', 'padding', 'width', 'z-index']);

Authors and Contributors

@DavidePastore.