Jump to content

[Share] List Simple: Hover show Text, Button, Overlay

Recommended Posts

Posted

To achieve layout like this

image.thumb.png.1f02a9568dd8cca21c5c6c7ed5f078f6.png

#1. First, you need to find List Section ID.

In my example, we will have:

section[data-section-id="67079915aa69e8040ff7de42"]

image.png.ae42d5e7c6f5e321cf1c7337c384ad96.png

#2. Use this code to Website Tools > Custom CSS

section[data-section-id="67079915aa69e8040ff7de42"] {
  li.list-item {
        pointer-events: initial !important;
        position: relative;
    }
    /* image */
    li.list-item .list-item-media-inner:before {
        content: "";
        background-color: rgba(0,0,0,0.5);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
        opacity: 0;
        pointer-events: none;
        transition: all 0.5s ease;
    }
    li.list-item:hover .list-item-media-inner:before {
        opacity: 1;
        transition: all 0.5s ease;
    }
    .list-item-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 100%;
        opacity: 0;
        transition: all 0.5s ease;
        z-index: 9999999;
    }
      /* text color */
    .list-item-content * {
        text-align: center !important;
        color: #fff !important;
    }
    li.list-item:hover .list-item-content {
        opacity: 1;
        transition: all 0.5s ease; 
    }
}

image.thumb.png.eed38e841f59fefcc21cf6ee75cbabec.png

#3. To remove space between items

image.png.0106af5795512cadc5546357ab7d9394.png

You can edit List > Click Design > Size & Space

image.png.1de96f035d1d2580f4d3736db4d8fea8.png

At Space Between Items > Click 3 dots > Choose 0px

image.png.4910e3751ae580bc5cfe2d4bed8c4044.png

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!)

  • Replies 0
  • Views 386
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.