On my website powered by Elementor Pro
, I have implemented custom CSS to animate the Shape Divider
with a "Brush Wave" style. Below is the code snippet:
.elementor-shape-bottom
.elementor-shape-top
.elementor-shape
body {
overflow-x:hidden;
}
@keyframes wave {
0% {
margin-left: 0;
}
50% {
margin-left: -1600px;
}
100% {
margin-left: 0px;
}
}
.elementor-shape-top {
bottom: -1px;
animation: wave 22s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
width: 210%;
}
.elementor-shape-bottom {
bottom: -1px;
animation: wave 22s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
width: 210%;
}
@media only screen and (max-width: 768px) {
.elementor-shape-top {
bottom: -5px;
animation: wave 22s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
width: 210%;
}
.elementor-shape-bottom {
bottom: -5px;
animation: wave 22s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
width: 210%;
}
}
@media only screen and (max-width: 1920px) {
}
The animation works correctly on desktop but has issues on tablets and mobile devices. It overlaps with other sections, where the top animation covers its respective section and the bottom animation does the same.
An example of the issue can be seen below. How can I resolve this problem?