We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

how do you call the percentage variable from the init tab in exec script puzzle

Home Forums Programming how do you call the percentage variable from the init tab in exec script puzzle

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38104

    Hi guys,

    I need to use the loading percentage to control the stroke-dasharray and stroke-dashoffset of some svg paths as a pre-loader, both of these attributes are not supported in the puzzles and I can retrieve only the first element matching my selection with the query selector puzzle, I need to do that via scripting but I had no luck calling that percentage

    thanks in advance

    #38190

    Hi,

    You can use a variable to assign the percentage value to. And then in “exec script” it should be available from the built-in VARS object:
    percentage.png

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead developer at Soft8Soft.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.