Skip to content

Commit

Permalink
fix: typo in second-delay
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburnell committed Jan 23, 2024
1 parent 4febf7f commit 3e31538
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ Make sure you include the `<script>` in your project (choose one of these):
<!-- 3rd party CDN, not recommended for production use -->
<script
type="module"
src="https://www.unpkg.com/@chrisburnell/svg-sparkline@1.0.2/svg-sparkline.js"
src="https://www.unpkg.com/@chrisburnell/svg-sparkline@1.0.3/svg-sparkline.js"
></script>
```

```html
<!-- 3rd party CDN, not recommended for production use -->
<script
type="module"
src="https://esm.sh/@chrisburnell/svg-sparkline@1.0.2"
src="https://esm.sh/@chrisburnell/svg-sparkline@1.0.3"
></script>
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chrisburnell/svg-sparkline",
"version": "1.0.2",
"version": "1.0.3",
"description": "A Web Component that builds an SVG Sparkline.",
"main": "svg-sparkline.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion svg-sparkline.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class SVGSparkline extends HTMLElement {
:host {
--duration: var(--svg-sparkline-animation-duration, var(--animation-duration, 1s));
--first-delay: var(--svg-sparkline-animation-first-delay, var(--svg-sparkline-animation-delay, var(--animation-delay, 1s)));
--second-delay: var(--svg-sparkline-animation-second-delay, calc(var(--duration) + * var(--first-delay)));
--second-delay: var(--svg-sparkline-animation-second-delay, calc(var(--duration) + var(--first-delay)));
}
:host([animate]) svg:first-of-type {
clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
Expand Down

0 comments on commit 3e31538

Please sign in to comment.