I've been experimenting with a svg typewriter effect by setting dashoffset
and dasharray
to 1000 or 500. The animation works on Chrome, Safari, Firefox, and my PC, but it doesn't work on Microsoft Edge.
I'm struggling to make it work specifically with dasharray and dashoffset properties.
@-webkit-keyframes curse {
100% {
stroke-dashoffset: 0;
}
}
@keyframes curse {
100% {
stroke-dashoffset: 0;
}
}
#dot1 {
stroke-dasharray: 1000;
stroke-dashoffset: 1000;
-webkit-animation: curse 12s linear forwards;
animation: curse 12s linear forwards;
}
...
... (more CSS code)
...
#Iline {
stroke-dasharray: 500;
stroke-dashoffset: 500;
-webkit-animation: curse 1s linear forwards 2.1s;
animation: curse 1s linear forwards 2.1s;
}
#O3line {
stroke-dasharray: 500;
stroke-dashoffset: 500;
-webkit-animation: curse 0.6s linear forwards 2.38s;
animation: curse 0.6s linear forwards 2.38s;
}
<svg version="1.1" id="Layer_0" xmlns="http://www.w3.org/2000/svg" ... >
<g id="R_1_">
<!-- Embedded SVG paths -->
</g>
</svg>
I have experimented with various values for the properties, but still no luck in making it work.