I've recently delved into the world of SVG's and I find myself scratching my head over the stroke-dasharray issue. I've scoured the web for answers to no avail, leaving me to believe that I'm overlooking something crucial. Despite implementing the stroke-dasharray property, the text remains undashed, unable to achieve the animated effect I desire - a transition from dashed to bold.
#namelogo{
width: 100%;
height: auto;
}
#namelogo path:nth-child(1){
stroke-dasharray: 300;
}
<div class="logo">
<svg id="namelogo" viewBox="0 0 659 112" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="path-1-outside-1" maskUnits="userSpaceOnUse" x="-0.791992" y="0.335999" width="660" height="111" fill="black">
<rect fill="white" x="-0.791992" y="0.335999" width="660" height="111"/>
(SVG paths here...)
</mask>
(SVG paths here with stroke properties)
</svg>
</div>