Jump to content

Recommended Posts

Posted

Site URL: https://rochelle.studio/selected-works-4

I have two ideas I'm wanting to implement. I'm using 7.1 and strips gallery.

1. ) Is there a way to have the gallery images in colour, when you hover they turn greyscale and once curser has moved off it goes back to colour? 

I have used this code which makes everying greyscale but when hovers it shows colour.

.gallery-strips-item {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}
figure:hover {
    filter: grayscale(0);
    -webkit-filter: grayscale(0);
}

 

2.) When hovering over an image it enlarges quite big, then goes back to normal.

 

Posted (edited)

Hi, I can't see the page behind the password but try this:

.gallery-strips-item img {
  filter: grayscale(0);
  -webkit-filter: grayscale(0);
  transform: scale(1);
  transition: all .6s;
  &:hover {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    transform: scale(1.4);
  }
}

I hope that helps.

Edited by Square_Ace

Square Ace

Enhancing Squarespace websites for over a decade. I am an expert in writing custom code for the Squarespace platform.
Tailor-made, reusable solutions to your problems, whether it's styling, layout or functionality.
Maverick Squarespace Designers, I'll be your Goose. If your tools are holding back your creative vision, maybe I can help.
I also build useful plugins for Squarespace (with some really positive reviews) including the popular high-quality video background plugin.

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.