I have an svg animation on an angular 8 app,an svg circle whick working fine on chrome and mozilla but dosen't work on I.E 11. Any ideas how to make it work there too?How can i change my css to work on I.E 11 too? Thanks for your attention. Iām looking forward to your reply.
I have add meta for IE on my header:
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Live example
#countdown {
position: relative;
margin: auto;
height: 40px;
width: 40px;
text-align: center;
}
#countdown-number {
color: #1C5BA2;
display: inline-block;
line-height: 40px;
}
svg {
position: absolute;
top: 0;
right: 0;
width: 40px;
height: 40px;
transform: rotateY(-180deg) rotateZ(-90deg);
}
svg circle {
stroke-dasharray: 113px;
stroke-dashoffset: 0px;
stroke-linecap: round;
stroke-width: 2px;
stroke: #1C5BA2;
fill: none;
-webkit-animation: countdown 31s linear forwards;
animation: countdown 31s linear forwards;
}
@keyframes countdown {
from {
stroke-dashoffset: 0px;
}
to {
stroke-dashoffset: 113px;
}
}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="row mt-5">
<div class="col">
<div id="countdown">
<div id="countdown-number"></div>
<svg>
<circle r="18" cx="20" cy="20"></circle>
</svg>
</div>
</div>
</div>
</div>
my index
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>App Name</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
</head>
<body>
<app-root></app-root>
</body>
</html>