I know there are some questions with similar problems on SO, but they don't match my current problem, I'm trying to do an animation with some path svg, on CodePen my animation works, but the class "pulse" (the color changing) doesn ' t work, it's look like it is switch off (?), while in Atom Editor, not even the animation works for me, even if it is opened in front of the browser
I have already tried to put the "pulse" class on other divs but the situation does not change, only if placed on the svg container, it works, but colors the entire area covered by the svg file, not the individual elements of the SVG, for this reason I put the "pulse" class on the individual paths, but there seems to be no way for this to work (?) And why there is this difference between previe on codepen and preview from Atom?
PLEASE OPEN THE CODEPEN EXAMPLE FILE
<div class="spin ">
<svg viewBox="0 0 800 800" >
<g class="pulse">
<path class="pulse"
d="M587.3,263.2c20.7,1.1,40.8,5.5,60.7,11.4c17,5,34.1,5.2,49.6-5c6.6-
4.4,12.6-9.8,18.8-14.8c6.8-5.5,12.7-12.2,21.6-14.9
c3.8-1.2,4.6-6.2,1.9-9.7c-2.7-3.5-6.6-5.3-10.6-3.2c-6.1,3.2-12.1,6.9-
17.6,11.1c-5,3.8-9.2,8.7-13.9,12.9
c-8.2,7.3-17.8,13.2-28.9,11.4c-17.8-2.9-35.3-7.6-52.9-11.6c0-0.8,0-
1.5,0.1-2.3c3.4-0.8,6.8-2,10.3-2.4
c11.7-1.5,23.5-2.6,35.2-4.1c9.5-1.2,18.2-4.4,24.8-11.7c3.3-3.7,3.5-
8.7,0.9-12.4c-2.8-3.9-7.1-5-12-2.9
c-3.8,1.6-7.9,2.9-11.3,5.2c-8.4,5.8-17.9,7.6-27.7,9c-18.3,2.5-37,2.8-
54.2,10.5c-0.7,0.3-1.6,0.3-2.5,0.3c-7-0.2-14-0.2-20.9-0.6
c-22.3-1.2-44.6-2.5-66.9-3.7c-2.6-0.1-5.4,0.3-7.8,1.2c-5.4,2-8.1,6.8-
6.7,11.2c1.4,4.4,5.6,6.6,11.5,5c15.2-4,30.6-4.7,46.1-2.9
c7.6,0.8,15.2,2.4,22.7,3.7c0,0.5,0,1,0,1.5c-3.1,2.2-6.4,4.1-9.2,6.5c-
2.9,2.6-5.8,3-9.5,2c-16.5-4.5-32.6-3.5-48.3,3.6
c-6.2,2.8-9.3,6.9-8.3,11.5c1.1,5.1,5.5,8,12.4,7.8c4.3-0.1,8.6-1.2,12.9-
1.2c6.3,0,12.6,0.6,18.9,0.9c0.1,0.6,0.2,1.2,0.3,1.8
c-3.3,3.9-6.5,7.9-9.8,11.8c-10.7,12.5-19.9,25.9-26.5,40.9c-5.9,13.4-
1.5,24.2,12.3,29.2c17.2,6.2,33.8,5,48.6-6.8
c8.2-6.6,16.8-12.1,27.5-13.2c8.6-0.9,17.2-2,25.9-2.4c15-0.7,30-1,45-
1.1c10.4,0,17.8-4.3,24.1-12.5c9.8-12.9,22.4-19.9,39.5-16.9
c5.5,1,11.6,0.1,17.3-0.9c7-1.3,10.1-7.9,7.6-14.5c-2.2-5.8-6.7-9.3-12.6-
8.7c-7.2,0.7-14.8,1.7-21.2,4.7
c-12.7,6.1-24.8,13.6-36.8,21c-4.1,2.5-8.1,4.3-13,4.2c-13.3-0.2-26.6-
0.5-40-0.4c-11.8,0.1-23.7,0-35.4,1.3
c-14.2,1.6-28.6,4.1-40.4,13.1c-10.3,7.8-22.3,6-34.6,7.6c0.9-2.3,1.4-
3.9,2.1-5.3c8.6-17.7,20.9-32.3,36-44.9
c3.4-2.8,6.5-4,10.9-
3c20.8,4.7,41.6,9.4,62.4,13.9c5.4,1.2,10.8,2.3,16.2,2.8c3.1,0.3,6.1-
1.1,6.6-4.7c0.6-3.8-1.2-6.4-4.9-7.6
c-1.3-0.4-2.6-0.6-3.9-0.9c-16.2-3.9-32.4-7.6-48.5-12c-6.4-1.7-
12.3-5.1-19.7-8.3C570.1,268.2,577.7,262.7,587.3,263.2z">
</g>
</svg>
</div>
.pulse{
animation: pulse 5s infinite;
transition:.5s ease;
}
@keyframes pulse {
0%{
background-color: #001F3F;
}
100%{
background-color: #FF4136;
}
}
PLEASE OPEN THE CODEPEN EXAMPLE FILE