(This page includes affiliate links. If you click and purchase, I receive a small commission at no extra cost from you and that way you can support me. I only recommend tools that I have personally used and loved.)
Get Elementor Pro Today –
1 – Elementor Pro
Modern and Advanced Portfolio Image Reveal Effect
With the below code, you can create any number of list with its own image. You can also change the delay of the image following making it faster or slower. Its fully customizable for changing rotation angle, opacity on hover and fully responsive.
First Heading
Second Heading
Third Heading
Fourth Heading
- .moving-container is the CSS class for the container which contains the image when hover.
- .dm-item is the CSS class of all the containers which make the moving-container visible when hovered on.
- .first-item, .second-item ….. – are the CSS classes for individual containers in the list.
- The moving-container has been given width of min(25%, 350px); which means that the width would be 25% but would never go above 350px.
- To add your own URL for images, simply replace the background-image: url to your image locations for :hover for all first-item, second-item etc.
- .moving-container has background set to transparent but you can give it a default color or default image if needed.
- In the javascript, you can change rotation angle in transform. (Check comments in code)
- If you don’t want delay you can remove it making the value 100 to 0 in setTImeout. (Check comment in code).
- You can also change setTimeout value to your requirement increasing or decreasing delay.
- Making the moving-container opacity 1 to something lower like 0.8 can give another trendy effect.