Kasper Gyselinck
Kasper Gyselinck

Reputation: 175

Retrieving baseVal or animVal using Javascript

In the same way animVal can be used to retrieve the animated transform values, (ex. path.transform.animVal[0].angle) can baseVal and animVal also be used to retrieve animated stroke-dasharray and stroke-dashoffset values ? (javascript)

Upvotes: 0

Views: 504

Answers (1)

Robert Longson
Robert Longson

Reputation: 124059

No, stroke-dasharray and stroke-dashoffset are CSS properties and not attributes.

Only attributes have baseVal and animVal. With CSS properties only the animated value is retrievable.

Upvotes: 1

Related Questions