Welcome to TalkGraphics.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2011
    Location
    Vancouver, WA
    Posts
    102

    Default NAVBARS SHRINK ON SCROLL

    Has anyone been able to accomplish anything on the navbar shrinking to a smaller version on scroll beyond what was accomplished in Tazz's 2018 post? I've scoured the forum, and can't find anything new.

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

    Default Re: NAVBARS SHRINK ON SCROLL

    The original Tazz Thread is https://www.talkgraphics.com/showthr...size-on-Scroll.

    There is nothing native to Xara that does this gracefully.

    Here is a JavaScript approach: JS - Shrinking NavBar Logo.xar

    The logo has a Name of 'tg-logo'.
    The JS code and the CSS use this value.
    Rename the log, change the code.

    The maths is set for when the page scrolls to the bottom the logo is shrunk to 30%.
    You need to adjust this calculation if you want it to be fully shrunk by a specified height reached.

    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. #3
    Join Date
    Oct 2011
    Location
    Vancouver, WA
    Posts
    102

    Default Re: NAVBARS SHRINK ON SCROLL

    Quote Originally Posted by Acorn View Post
    The original Tazz Thread is https://www.talkgraphics.com/showthr...size-on-Scroll.

    There is nothing native to Xara that does this gracefully.

    Here is a JavaScript approach: JS - Shrinking NavBar Logo.xar

    The logo has a Name of 'tg-logo'.
    The JS code and the CSS use this value.
    Rename the log, change the code.

    The maths is set for when the page scrolls to the bottom the logo is shrunk to 30%.
    You need to adjust this calculation if you want it to be fully shrunk by a specified height reached.

    Acorn
    Well, it looks like that will be my only real option. It should be able to be worked with.

  4. #4
    Join Date
    Oct 2011
    Location
    Vancouver, WA
    Posts
    102

    Default Re: NAVBARS SHRINK ON SCROLL

    Thank you

 

 

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
  •