Jump to content
Search Community

Use SVG tspan in code

buster808 test
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

Hi,

I'm using this code from the remarkable https://www.creativecodingclub.com/

 

I want to use the counter with a svg tspan.

 

        <text id="portValueNum" class="cls-29" transform="translate(298.56257 235.84268)">
        <tspan id="manage" xml:space="preserve">1000</tspan>
        </text>

 

Is this even possible.

I tried changing, let elements = document.querySelectorAll("tspan") but no cigar.

Thanks

See the Pen NWRqmOv by snorkltv (@snorkltv) on CodePen

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...