Skip to content

Commit

Permalink
fix:example
Browse files Browse the repository at this point in the history
  • Loading branch information
yashrajbharti committed Dec 7, 2024
1 parent a8ced1b commit a95ff3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/svganimatednumber/animval/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ rect.setAttribute("width", "100");
const animatedWidth = rect.width;

// Simulate animation (for example, through CSS or JS)
console.log(animatedWidth.animVal); // Outputs: 100 (or animated value if in motion)
console.log(animatedWidth.animVal); // Output: 100 (animated value in motion)
```

## Specifications
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/svganimatednumber/baseval/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ path.setAttribute("pathLength", "10");
const animatedNumber = path.pathLength;

// Get the base value
console.log(animatedNumber.baseVal); // Outputs: 10
console.log(animatedNumber.baseVal); // Output: 10

// Modify the base value
animatedNumber.baseVal = 15;

// Verify the reflected attribute value
console.log(path.getAttribute("pathLength")); // Outputs: "15"
console.log(path.getAttribute("pathLength")); // Output: "15"
```

## Specifications
Expand Down

0 comments on commit a95ff3e

Please sign in to comment.