<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sticky Nav inspired by Porsche in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Sticky-Nav-inspired-by-Porsche/m-p/744592#M32414</link>
    <description>&lt;P&gt;They use JavaScript to check when a section comes into view and sets the appropriate link to 'active'. You can see some example code of this here:&lt;BR /&gt;&lt;A href="https://dev.to/areeburrub/change-nav-link-s-style-as-you-scroll-4p62" target="_blank"&gt;https://dev.to/areeburrub/change-nav-link-s-style-as-you-scroll-4p62&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As for the moving underline it looks like when a link changes to active they use JavaScript to calculate the location of the link and apply a transformation to animate the movement. Something similar to this:&lt;BR /&gt;&lt;A href="https://webdesign.tutsplus.com/tutorials/how-to-build-a-shifting-underline-hover-effect-with-css-and-javascript--cms-28510" target="_blank" rel="noopener"&gt;https://webdesign.tutsplus.com/tutorials/how-to-build-a-shifting-underline-hover-effect-with-css-and-javascript--cms-28510&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 14:24:53 GMT</pubDate>
    <dc:creator>alyssamwilie</dc:creator>
    <dc:date>2023-01-20T14:24:53Z</dc:date>
    <item>
      <title>Sticky Nav inspired by Porsche</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Sticky-Nav-inspired-by-Porsche/m-p/744478#M32405</link>
      <description>&lt;P&gt;I've come across this page on mobile and really like the sticky navigation found underneath the initial carousel;&amp;nbsp;&lt;A href="https://www.porsche.com/uk/models/718/718-models/718-cayman-gts-4/" target="_blank" rel="noopener"&gt;https://www.porsche.com/uk/models/718/718-models/718-cayman-gts-4/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've manaaged to build s similar sticky navigation, but I can't figure out how they've managed to get the navigation bar to move across automtically so that the active button is always visible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any developers out there able to shed some light on how this function is pulled off?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 10:08:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Sticky-Nav-inspired-by-Porsche/m-p/744478#M32405</guid>
      <dc:creator>ben-duchy</dc:creator>
      <dc:date>2023-01-20T10:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sticky Nav inspired by Porsche</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Sticky-Nav-inspired-by-Porsche/m-p/744592#M32414</link>
      <description>&lt;P&gt;They use JavaScript to check when a section comes into view and sets the appropriate link to 'active'. You can see some example code of this here:&lt;BR /&gt;&lt;A href="https://dev.to/areeburrub/change-nav-link-s-style-as-you-scroll-4p62" target="_blank"&gt;https://dev.to/areeburrub/change-nav-link-s-style-as-you-scroll-4p62&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As for the moving underline it looks like when a link changes to active they use JavaScript to calculate the location of the link and apply a transformation to animate the movement. Something similar to this:&lt;BR /&gt;&lt;A href="https://webdesign.tutsplus.com/tutorials/how-to-build-a-shifting-underline-hover-effect-with-css-and-javascript--cms-28510" target="_blank" rel="noopener"&gt;https://webdesign.tutsplus.com/tutorials/how-to-build-a-shifting-underline-hover-effect-with-css-and-javascript--cms-28510&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 14:24:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Sticky-Nav-inspired-by-Porsche/m-p/744592#M32414</guid>
      <dc:creator>alyssamwilie</dc:creator>
      <dc:date>2023-01-20T14:24:53Z</dc:date>
    </item>
  </channel>
</rss>

