Jump to content

Portfolio grid gallery modifications

Recommended Posts

Site URL: http://www.made4healing.com

Hello, 

 

I successfully used code from this post: 

 

 

It works great. The only trick is that it undoes the inner shadow css. 

.grid-image-inner-wrapper:before {
      box-shadow: inset 3px 3px 12px rgba(0,0,0,.1)!important;
    transition: all .2s linear;
}

 

Is it possible to add an inner shadow while still using this code? 

 

/* Portfolio hover */
.portfolio-text {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    text-align: center;
    z-index: 10000;
    opacity: 0;
}

a.grid-item {
    position: relative;
}
.grid-item:hover .portfolio-text {
    opacity: 1;
}
.grid-image-inner-wrapper:after {
    content: "";
    background-color: rgba(0,0,0,0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    opacity: 0;
}
.portfolio-text * {
    color: white !important;
}
.grid-item:hover .grid-image-inner-wrapper:after {
    opacity: 1;
}

 

If you can help, thank you in advance!!!

 

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.