Jump to content

Custom nav bar

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

 

Thank you so much! te link is https://semicircle-blueberry-y3ax.squarespace.com/config/ and password christine123

 

Im trying to create a hamburger menu that display horizontally only on desktop instead of taking the whole page. 

 

Also, sorry to bother you but do you know if its possible to add this type of animation in sqps? https://www.dayln.design/ (the sections that says designer and when you hover it appears lightning animations. If not possible, do you know how i can add this code instead? https://codepen.io/KaioRocha/pen/YoEVvZ i´ve tried but its not working 100%. 

 

Thank you in advanced!!!

Link to comment

Solved with this way

First, add a Folder Item (last item) to Pagination.

Next, add this code to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<style>
.header-actions.header-actions--right {
    display: none;
}
  a.header-nav-folder-title {font-size:0;}
  a.header-nav-folder-title:before {
    content: "\e030";
    font-family: 'squarespace-ui-font';
    font-size: 40px;
    position: absolute;
}
  .header-nav-list>div:nth-child(-n+3) {
    align-items: center;
    transition: all 0.3s ease;
    transform: translateX(500px);
}
  .tp-nav-open>div:nth-child(-n+3) {
  	transition: all 0.3s ease;
    transform: translateX(0);
  }
  html, body {overflow-x:hidden;}
  .header-menu-nav-folder[data-folder="root"]>div>div:last-child {
    display: none;
}
</style>
<script>
$(document).ready(function(){ $(".header-nav-folder-title").click(function(){
  $('.header-nav-list').toggleClass('tp-nav-open');
});
});
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.