Jump to content

Create reveal effect for menu items when hovering using CSS

Recommended Posts

Site URL: https://ray-gecko-tfeg.squarespace.com/

Hi there, wondering if someone can help because this is driving me mad. 

I am trying to create a hover to reveal effect in my header navigation. See an example attached of what I'm trying to achieve. 




I was able to achieve this effect for regular text by inserting the following into a code block: 

<div id="hover-div">
  A<span id="hover-element">bout</span>

<div id="hover-div">
  C<span id="hover-element">ontact</span>

<div id="hover-div">
  S<span id="hover-element">ervices</span>

and then adding the following to the CSS editor: 

#hover-element {
  display: none;
  position: absolute;

#hover-div:hover #hover-element {
  display: inline !important;

This had the following effect on my actual page: 



I am wanting to do this effect with each menu item in the navigation header but can't seem to figure out the code to achieve this. Does anyone have any suggestions or code to achieve this? 


Test website is https://ray-gecko-tfeg.squarespace.com/ and the password is test1234 


Thanks in advance!

Link to comment
  • Replies 2
  • Views 385
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Hey there! Sure, sorry for the confusion. 

See attached a screen recording showing what I'm trying to achieve in the header.


The site I am referencing is https://www.eyrc.com/

You can see on the site I'm building here https://ray-gecko-tfeg.squarespace.com/ (Password TEST1234). 


I was able to achieve this using a regular text block here: 


I just don't know how to achieve this in the header. Does that make more sense? 



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.