-
Notifications
You must be signed in to change notification settings - Fork 0
Basic CSS
kyleplo edited this page Feb 24, 2018
·
1 revision
In the future, we plan to add an UltraLangScript sub-library called css.js. This will have many more features. But in the meantime, UltraLangScript's core has basic CSS functionality.
To get a single CSS property, use u().style(property). This returns the value as a string.
To set a single property, use u().style(property,value).
To get multiple properties, use u().style(array of properties). This returns an object of properties and values.
To set multiple properties, use u().style(object of properties and values). The object should look like: {property: "value"}
In UltraLangScript, you can enter property names in either hyphen-notation or camelCase.
Support Us, By Making issues, and PR's!