Quote from
asmat on March 31, 2020, 10:08 pm
Hi luishp,
Some day ago, I was create a sliding-menu with this code:
CreateEmptyObject [menuCSS]
If [menustate] == "close"
SetVar [menustate] "open"
SetVar [menuCSS.left] "-10%"
neoAnimateTo "ContainerMenu" [menuCSS] .5 0 "back" "easeout"
SetObjectStyle "carton" "opacity" "0.7"
ShowObject "carton" "" 0
Else
SetVar [menustate] "close"
SetVar [menuCSS.left] "-90%"
neoAnimateTo "ContainerMenu" [menuCSS] .5 0 "back" "easein"
hideObject "carton" "" 0
SetObjectStyle "carton" "opacity" "0"
EndIf
It works pretty. but if I open it in a page that has more html elements, the sliding of menu become slow..
You can see better in the attach file:
Is there anyway to fix this problem?
Hi luishp,
Some day ago, I was create a sliding-menu with this code:
CreateEmptyObject [menuCSS]
If [menustate] == "close"
SetVar [menustate] "open"
SetVar [menuCSS.left] "-10%"
neoAnimateTo "ContainerMenu" [menuCSS] .5 0 "back" "easeout"
SetObjectStyle "carton" "opacity" "0.7"
ShowObject "carton" "" 0
Else
SetVar [menustate] "close"
SetVar [menuCSS.left] "-90%"
neoAnimateTo "ContainerMenu" [menuCSS] .5 0 "back" "easein"
hideObject "carton" "" 0
SetObjectStyle "carton" "opacity" "0"
EndIf
It works pretty. but if I open it in a page that has more html elements, the sliding of menu become slow..
You can see better in the attach file:
Is there anyway to fix this problem?
Uploaded files:- You need to login to have access to uploads.
YASIN has reacted to this post.