How to crate a sliding menu. Video tutorial - Forum

Forum Navigation
You need to log in to create posts and topics.

How to crate a sliding menu. Video tutorial

In today video tutorial we will learn how to create a "hamburger type" sliding menu for our applications. We will see also how to use pages and master pages. As usual, you will find the sample app source code attached. Please like if you find it useful. Thank you!

Uploaded files:
  • You need to login to have access to uploads.
Vadim, CDY@44 and 2 other users have reacted to this post.
VadimCDY@44asmatYASIN

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.
YASIN

Cool !!!!

@asmat You are an intelligent person. I read all your publications on this forum and they are very interesting. Thank you very much for sharing them.

asmat has reacted to this post.
asmat

@asmat your projects are really beautiful, congratulations!
About menu speed, are you sure it's because the HTML elements? Aren't you executing scripts in the background on that specific page? On my experience those slow down animations are usually due to intensive scripts processing at the same time.

asmat has reacted to this post.
asmat

@luishp

Useful lesson! The sliding menu is a very convenient part of the interface!

Thank you very much!!!

Hi luishp,

I think maybe it is cause of  "watch" command, because the other commands done once.

This is code of page-enter:

applyEnterKey "debtbox"
............................................................
.............observer....
Watch [DebtJSON] "tablizeDebt"
Watch [DebtTableHistoryJSON] "tablizeDebtHistory"

......read from firebase and than make a table of that..............
Wait 1000
     If [DebtId] == 1
         successWriteDebt
         successWriteDebtHistory
     Else
         successWriteDebt1
         successWriteDebtHistory1
     Endif
EndWait

...................default variable for chiveron movement...........................
SetVar [ch1Status] 1
SetVar [ch2Status] 1
YASIN has reacted to this post.
YASIN