The Divi Before/After Module plugin allows you to have various before & after image effects without hand coding yourself.
“Ever wished for an easy way to compare two images in Divi? BAM! Wish granted! Now you can in just 3 simple steps:
- Add the new before/after module
- Select your “before” and “after” images
- Select your style… and BAM, you’re done!”