more improvments
This commit is contained in:
parent
a6ebab0dea
commit
9eca20a2a3
1 changed files with 4 additions and 4 deletions
|
|
@ -15,8 +15,8 @@ let side = "right"; // Side of parent we are on.
|
||||||
let visible = false; // Whether textInput is visible.
|
let visible = false; // Whether textInput is visible.
|
||||||
|
|
||||||
function showTextInput () {
|
function showTextInput () {
|
||||||
let t1 = (side === "right") ? 50 : -70;
|
const t1 = (side === "right") ? 50 : -70;
|
||||||
let t2 = (side === "right") ? 110 : -130;
|
const t2 = (side === "right") ? 110 : -130;
|
||||||
|
|
||||||
anime({
|
anime({
|
||||||
targets: '#textInput',
|
targets: '#textInput',
|
||||||
|
|
@ -31,7 +31,7 @@ function showTextInput () {
|
||||||
}
|
}
|
||||||
|
|
||||||
function hideTextInput() {
|
function hideTextInput() {
|
||||||
let t = (side === "right") ? 50 : -80;
|
const t = (side === "right") ? 50 : -80;
|
||||||
|
|
||||||
anime({
|
anime({
|
||||||
targets: '#textInput',
|
targets: '#textInput',
|
||||||
|
|
@ -46,7 +46,7 @@ function hideTextInput() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function switchSide(currentSide: string) {
|
function switchSide(currentSide: string) {
|
||||||
let t = (currentSide === "right") ? -130 : 110;
|
const t = (currentSide === "right") ? -130 : 110;
|
||||||
|
|
||||||
anime({
|
anime({
|
||||||
targets: '#textInput',
|
targets: '#textInput',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue