Add Filter Effect on image hover in Cargo Collective Website to make it attractive
We all know that Cargo Collective is a very popular site builder among artists, designers, creative studios, and other professionals because of its unique templates and advanced functionality but sometimes that is not enough and we want to to further in adding some cool effects and animation for our cargo collective website to make it more unique.
So today in this blog we are going to learn how you can add different filter effects in your Cargo 2 website image will will give a feel-good effect to your website.So let’s get started
Add Filter Effect on image hover in Cargo Collective Site
First log into your cargo account and then create a page after that you can upload the image of your choice and then drag the image inside the cargo editor.
If you want all images present on your website should have this filter effect on hovering the image then you should add the filter hover CSS code in the global CSS editor.
Here are the steps to add a filter effect on hover in all images present on the website :
- Click on the Design tab.
- Navigate to the CSS editor.
- Paste the provided filter hover CSS code.
- Enjoy a uniform filter effect on all images when hovered across your website.
img:hover{
filter: grayscale(100%);
}
You can choose other filter effects such –
filter: blur(5px);
filter: brightness(200%);
filter: contrast(200%);
filter: drop-shadow(8px 8px 10px gray);
filter: grayscale(100%);
filter: hue-rotate(90deg);
filter: invert(100%);
filter: opacity(30%);
filter: saturate(8);
filter: sepia(100%);
filter: contrast(200%) brightness(150%);
You can change the filter effect values per your choice.
But what if you want to add the filter effects only to the images present on the particular page.
Here are the steps to add a filter effect in an image by hovering on a particular page:
- Navigate to the specific page.
- Locate the “CODE VIEW” button at the bottom right.
- Click on the “CODE VIEW” button.
- Paste the provided code below, ensuring that you wrap the code inside
<style>
tags. - Click on “Save.”
<style>
img:hover{
filter: grayscale(100%);
}
</style>
Now, the filter effect will only be applied to the images on the particular page.
I hope you have found this blog helpful. Thanks for reading🚀
If you have any questions or need help with your Cargo Site, feel free to ask in the discussion forum. We’re here to assist you!