Bertie Posted February 24 Share Posted February 24 Is it possible to apply a black and white filter by default to the desktop version of a Testimonial carousel so that only on a mouse-over event would an item fade into full colour ? Link to comment
Bertie Posted February 25 Author Share Posted February 25 The following page shows a simple way to achieve a greyscale solution, but I cannot seem to get it to work on the carousel: #user-items-list-carousel__slides user-items-list-carousel__slides--initialized:hover img {filter: grayscale(50%)} Link to comment
tuanphan Posted February 28 Share Posted February 28 Hi, Can you share link to page where you use carousel? We can check easier Bertie 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Bertie Posted March 1 Author Share Posted March 1 Hi, thanks for your help: https://pastille.london/construction-custom-woodwork Link to comment
Solution tuanphan Posted March 6 Solution Share Posted March 6 On 3/2/2023 at 1:58 AM, Bertie said: Hi, thanks for your help: https://pastille.london/construction-custom-woodwork Add to Design > Custom CSS .user-items-list-item-container[data-section-id="62ffdd571fe4027515d357c3"] li:hover img { filter: grayscale(50%); } .user-items-list-item-container[data-section-id="62ffdd571fe4027515d357c3"] .user-items-list-carousel__slide { pointer-events: initial !important; } Bertie and EarvinChong 2 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Bertie Posted March 8 Author Share Posted March 8 Many thanks for you help ! I modofied the code to work in reverse: .user-items-list-item-container[data-section-id="62ffdd571fe4027515d357c3"] li img { filter: grayscale(100%); } .user-items-list-item-container[data-section-id="62ffdd571fe4027515d357c3"] li:hover img { transition: 0.5s; filter: grayscale(0%); } .user-items-list-item-container[data-section-id="62ffdd571fe4027515d357c3"] .user-items-list-carousel__slide { pointer-events: initial !important; } The Transition property also makes it a little more elegant. Cool and thank you for your time ! EarvinChong 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment