Bertie Posted February 24, 2023 Share Posted February 24, 2023 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, 2023 Author Share Posted February 25, 2023 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, 2023 Share Posted February 28, 2023 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Bertie Posted March 1, 2023 Author Share Posted March 1, 2023 Hi, thanks for your help: https://pastille.london/construction-custom-woodwork Link to comment
Solution tuanphan Posted March 6, 2023 Solution Share Posted March 6, 2023 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; } EarvinChong and Bertie 2 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!) Link to comment
Bertie Posted March 8, 2023 Author Share Posted March 8, 2023 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