-
Notifications
You must be signed in to change notification settings - Fork 0
Constructing the Stylesheet
bapquad edited this page Feb 20, 2022
·
4 revisions
[Home] > Constructing the Stylesheet
This content we learn how to construct the stylesheet with Element5JS API.
For working with constructed stylesheet. we must to use the style5
package. Let's import it first for using.
import {element5 as $, style5} from '@bapquad/element5'
Next, we creates the style rule object such as body
in below example. Rule object allows add CSS stylesheet and add nest selectors.
let body = style5.AddLine("body");
body.AddSelector("#wrapper");
After we have the rule object such as style
in below example, we can add some styles with css stylesheet.
style.css({
"height": "100px",
"background": "red"
});
Bapquad Games since 2015
- Get Started
- Working with DOM
- Constructing the StyleSheet
- Working with Sprite
- Working with Timeline
- Working with Scroller
- Working with Camera
- Working with Microphone
- Making the Ajax Request
- Opening a Websocket
- Working with Storage
- Checking User Agent
- Working with GPS
- Working with Router
- Playing the Stream