-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
198 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"scroll-svg": patch | ||
--- | ||
|
||
JSDoc Added |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ src | |
pnpm-lock.yaml | ||
tsconfig.json | ||
vite.config.ts | ||
examples | ||
example | ||
docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,3 +103,7 @@ section:nth-of-type(2n) { | |
width: auto; | ||
height: 100%; | ||
} | ||
|
||
#scroll-line-2 { | ||
transition: all 0s ease; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import scrollSvg from "../src/index" | ||
import scrollSvg from '../src/index' | ||
|
||
const svgPath1 = document.querySelector("#scroll-line-1") as SVGPathElement | ||
const svgPath2 = document.querySelector("#scroll-line-2") as SVGPathElement | ||
const svgPath3 = document.querySelector("#scroll-line-3") as SVGPathElement | ||
const svgPath4 = document.querySelector("#scroll-line-4") as SVGPathElement | ||
const svgPath1 = document.querySelector('#scroll-line-1') as SVGPathElement | ||
const svgPath2 = document.querySelector('#scroll-line-2') as SVGPathElement | ||
const svgPath3 = document.querySelector('#scroll-line-3') as SVGPathElement | ||
const svgPath4 = document.querySelector('#scroll-line-4') as SVGPathElement | ||
|
||
const svg1 = scrollSvg(svgPath1, { invert: true }) | ||
const svg2 = scrollSvg(svgPath2, { draw_origin: "bottom" }) | ||
const svg2 = scrollSvg(svgPath2, { draw_origin: 'bottom' }) | ||
const svg3 = scrollSvg(svgPath3, { offset: 100 }) | ||
const svg4 = scrollSvg(svgPath4, { undraw: true }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.