Welcome to TalkGraphics.com
Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 56
  1. #31
    Join Date
    Apr 2018
    Location
    Barnes, London
    Posts
    952

    Default Re: JS Hamburger Menu (Acorn)

    Quote Originally Posted by Chris M View Post
    Pretty comfortable with the theory now, although I don't claim to know 70% of the actual code.

    I can dive in and change the speed of animation, toggle and slide, slideUp, hide and fade, but that's about it.

    Link to my efforts < HERE > along with Acorn's code that makes it work.

    And the .web for anyone who wants edit/add/expand the page.

    Attachment 127542
    Thanks for sharing Chris. I had a play with your example and added a 'take-me-home' button (edition attached)

    Click image for larger version. 

Name:	Take me Home Button.jpg 
Views:	65 
Size:	81.7 KB 
ID:	127545

    Next, I thought let's combine Acorn's ideas with the animated popup concept to extend animation through standard Xara. In the example, the link brings the selected class into view and opens a popup at the same time in a step-by-step approach.

    Click image for larger version. 

Name:	JS-Animated Popup Combo.jpg 
Views:	72 
Size:	58.6 KB 
ID:	127547 Example attached

    Then going back in the thread to the @LGF challenge and a simple NavBar, I made one with no code at all with a standard go to Top-of-Page button, where the menu is revealed by sliding in from the top. The login's are sticky so always in view whereas the additional buttons slide upwards out of view, but are brought back with the Top of Page button.

    Click image for larger version. 

Name:	Horizontal Slide Down Menu.PNG 
Views:	62 
Size:	219.1 KB 
ID:	127549 Example attached.

    Thanks to you and Acorn for the ideas.

    Gary
    Attached Files Attached Files
    Last edited by Initiostar; 02 August 2020 at 06:10 PM. Reason: Combo2 is the correct XAR

  2. #32
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,803

    Info Re: JS Hamburger Menu (Acorn)

    Quote Originally Posted by Initiostar View Post
    Thanks for sharing Chris. I had a play with your example and added a 'take-me-home' button (edition attached)

    Click image for larger version. 

Name:	Take me Home Button.jpg 
Views:	65 
Size:	81.7 KB 
ID:	127545

    Next, I thought let's combine Acorn's ideas with the animated popup concept to extend animation through standard Xara. In the example, the link brings the selected class into view and opens a popup at the same time in a step-by-step approach.

    Click image for larger version. 

Name:	JS-Animated Popup Combo.jpg 
Views:	72 
Size:	58.6 KB 
ID:	127547 Example attached

    Then going back in the thread to the @LGF challenge and a simple NavBar, I made one with no code at all with a standard go to Top-of-Page button, where the menu is revealed by sliding in from the top. The login's are sticky so always in view whereas the additional buttons slide upwards out of view, but are brought back with the Top of Page button.

    Click image for larger version. 

Name:	Horizontal Slide Down Menu.PNG 
Views:	62 
Size:	219.1 KB 
ID:	127549 Example attached.

    Thanks to you and Acorn for the ideas.

    Gary
    Gary, thank you for taking these further down the line.

    We probably need siran to convert javascript: void $('.cover, .step1, .step2, .step3, .step4 ').hide(0);xr_ppc("xr_xp4");xr_ppc("xr_xp5");xr_cp u(6); into a Domain Specific Language construct (akin to Xara's popup syntax).
    P.S. The javascript: void $('.cover, .step1, .step2, .step3 .step4 '); part you had in earlier Steps does nothing. It need an action to perform over that collection like the hide(0) here.

    In the Toggle.xar file, I added WebAmination > Click: Rotate-fade + Fast to the controls. Very satisfying.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  3. #33
    Join Date
    Apr 2018
    Location
    Barnes, London
    Posts
    952

    Default Re: JS Hamburger Menu (Acorn)

    Gary, thank you for taking these further down the line.

    We probably need siran to convert javascript: void $('.cover, .step1, .step2, .step3, .step4 ').hide(0);xr_ppc("xr_xp4");xr_ppc("xr_xp5");xr_cp u(6); into a Domain Specific Language construct (akin to Xara's popup syntax).
    P.S. The javascript: void $('.cover, .step1, .step2, .step3 .step4 '); part you had in earlier Steps does nothing. It need an action to perform over that collection like the hide(0) here.

    In the Toggle.xar file, I added Web Animation > Click: Rotate-fade + Fast to the controls. Very satisfying.

    Acorn
    Thanks for your advice Acorn. I removed the redundant code; all continued to work OK.

    I added your suggestion to Chris's Toggle - slick effect.

    Gary
    Attached Files Attached Files

  4. #34
    Join Date
    Oct 2010
    Location
    South Africa
    Posts
    877

    Default Re: JS Hamburger Menu (Acorn)

    Quote Originally Posted by Acorn View Post
    LGF, the somebody to help you has to be Xara!

    In all versions prior to Xara Pro+v17, I can use the same construct as Xara; Link to: http://xara.com; Open link: New window, and everything works as expected. Not in Pro+.

    UPDATE
    The code in the Website Body (code) and the subsequent function calls need to change the function from open() to something else; I have just used openSesame(chain) and all works as it should.

    Acorn
    Thank you Acorn - Xara is remarkably weird some times!!!!

  5. #35
    Join Date
    Oct 2010
    Location
    South Africa
    Posts
    877

    Default Re: JS Hamburger Menu (Acorn)

    Quote Originally Posted by Chris M View Post
    Don't forget to add the 'Sesame' to your links as well.

    Attachment 127541
    Thanks Chris M and Acorn

  6. #36
    Join Date
    Oct 2010
    Location
    South Africa
    Posts
    877

    Default Re: JS Hamburger Menu (Acorn)

    Quote Originally Posted by Chris M View Post
    You mention thinking about a horizontal bar, that's the way I would go too.
    Nice one Chris!

  7. #37
    Join Date
    Oct 2010
    Location
    South Africa
    Posts
    877

    Default Re: JS Hamburger Menu (Acorn)

    Quote Originally Posted by Acorn View Post
    LGF, the somebody to help you has to be Xara!

    In all versions prior to Xara Pro+v17, I can use the same construct as Xara; Link to: http://xara.com; Open link: New window, and everything works as expected. Not in Pro+.

    UPDATE
    The code in the Website Body (code) and the subsequent function calls need to change the function from open() to something else; I have just used openSesame(chain) and all works as it should.

    Acorn
    Aaaaarrrrgggghhhh!!! Now when I click on RESOURCES I get a - Not Found - The requested URL has no content.

  8. #38
    Join Date
    Oct 2010
    Location
    South Africa
    Posts
    877

    Default Re: JS Hamburger Menu (Acorn)

    OK - I have to add the sesame bit if I want the drop down menu to open - like I said - 1 forwards, 1 back...

    SO does this mean that in the future, when ever I want the JS to open something, I have to add another word like this: javascript: openUp(whatever);

  9. #39
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,803

    Default Re: JS Hamburger Menu (Acorn)

    Quote Originally Posted by letsgofishing View Post
    Aaaaarrrrgggghhhh!!! Now when I click on RESOURCES I get a - Not Found - The requested URL has no content.
    LGF, let's assume it's finger trouble.
    My last change puts the Link as javascript: openSesame('.Ham4');

    If not fingers, can you upload your file?

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  10. #40
    Join Date
    Oct 2010
    Location
    South Africa
    Posts
    877

    Default Re: JS Hamburger Menu (Acorn)

    Quote Originally Posted by Initiostar View Post
    Thanks for sharing Chris. I had a play with your example and added a 'take-me-home' button (edition attached)

    Click image for larger version. 

Name:	Take me Home Button.jpg 
Views:	65 
Size:	81.7 KB 
ID:	127545

    Next, I thought let's combine Acorn's ideas with the animated popup concept to extend animation through standard Xara. In the example, the link brings the selected class into view and opens a popup at the same time in a step-by-step approach.

    Click image for larger version. 

Name:	JS-Animated Popup Combo.jpg 
Views:	72 
Size:	58.6 KB 
ID:	127547 Example attached

    Then going back in the thread to the @LGF challenge and a simple NavBar, I made one with no code at all with a standard go to Top-of-Page button, where the menu is revealed by sliding in from the top. The login's are sticky so always in view whereas the additional buttons slide upwards out of view, but are brought back with the Top of Page button.

    Click image for larger version. 

Name:	Horizontal Slide Down Menu.PNG 
Views:	62 
Size:	219.1 KB 
ID:	127549 Example attached.

    Thanks to you and Acorn for the ideas.

    Gary
    Hi Initiostar - thanks for all the thinking and other ideas - appreciated!

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •