restructured
This commit is contained in:
parent
48677a610e
commit
a99ed59f6c
6 changed files with 8 additions and 8 deletions
|
@ -112,7 +112,7 @@ name = Stear.addGlobalStyleJSON({
|
||||||
```
|
```
|
||||||
The Function can add CSS like CSS can be added to Elements in Pages. When leaving name empty a cssClass will be added with a sortof random name.
|
The Function can add CSS like CSS can be added to Elements in Pages. When leaving name empty a cssClass will be added with a sortof random name.
|
||||||
|
|
||||||
#### Adding CSS Animations the with JSON
|
#### Adding CSS Animations with JSON
|
||||||
```javascript
|
```javascript
|
||||||
var KeyframeName = Stear.addAnimation({
|
var KeyframeName = Stear.addAnimation({
|
||||||
"0%":{
|
"0%":{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { _ } from "./stear/main.js";
|
import { _ } from "../stear/main.js";
|
||||||
import { fadein, fadeout, wait } from "./stear/utils.js";
|
import { fadein, fadeout, wait } from "../stear/utils.js";
|
||||||
import "./waitStyle.js";
|
import "./waitStyle.js";
|
||||||
|
|
||||||
export const preRender = true;
|
export const preRender = true;
|
||||||
|
@ -26,7 +26,7 @@ _({find:"main"},[
|
||||||
])
|
])
|
||||||
]);
|
]);
|
||||||
|
|
||||||
export const call = async (stear, { find, resolve, render, call }, args) => {
|
export const call = async (stear, { find, resolve, render, call }, {name,id}) => {
|
||||||
find.text._.innerText = "Connecting to: " + name + " (" + id + ")";
|
find.text._.innerText = "Connecting to: " + name + " (" + id + ")";
|
||||||
await fadein(find.main._, 200, true);
|
await fadein(find.main._, 200, true);
|
||||||
//do connection
|
//do connection
|
|
@ -1,4 +1,4 @@
|
||||||
import { Stear, SWindow } from "./stear/main.js";
|
import { Stear, SWindow } from "../stear/main.js";
|
||||||
|
|
||||||
import * as connect from "./connect.js";
|
import * as connect from "./connect.js";
|
||||||
import * as start from "./start.js";
|
import * as start from "./start.js";
|
|
@ -1,5 +1,5 @@
|
||||||
import { Stear, _ } from "./stear/main.js";
|
import { Stear, _ } from "../stear/main.js";
|
||||||
import { fadein, fadeout, wait } from "./stear/utils.js";
|
import { fadein, fadeout, wait } from "../stear/utils.js";
|
||||||
|
|
||||||
export const preRender = true;
|
export const preRender = true;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Stear } from "./stear/main.js";
|
import { Stear } from "../stear/main.js";
|
||||||
|
|
||||||
var animation = Stear.addAnimation({
|
var animation = Stear.addAnimation({
|
||||||
"0%": {left: "4%",top: "4%"},
|
"0%": {left: "4%",top: "4%"},
|
Loading…
Reference in a new issue