Skip to content

Commit 19c93c1

Browse files
committed
build v5.1.0
1 parent 99d1f15 commit 19c93c1

File tree

9 files changed

+135
-40
lines changed

9 files changed

+135
-40
lines changed

dist/esm/pushin.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,17 @@ export declare class PushIn {
1515
private lastAnimationFrameId;
1616
cleanupFns: VoidFunction[];
1717
options: PushInOptions;
18+
scrollTarget?: HTMLElement | string;
1819
constructor(container: HTMLElement, options?: PushInOptions);
1920
/**
2021
* Initialize the object to start everything up.
2122
*/
2223
start(): void;
24+
/**
25+
* Get scrollTarget option from data attribute
26+
* or JavaScript API.
27+
*/
28+
setScrollTarget(): void;
2329
/**
2430
* Set the target parameter and make sure
2531
* pushin is always a child of that target.

dist/esm/pushin.js

Lines changed: 60 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/pushin.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/types.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export interface PushInOptions {
2424
scene?: SceneOptions;
2525
selector?: string;
2626
target?: string;
27+
scrollTarget?: string;
2728
}
2829
export interface PushInLayer {
2930
element: HTMLElement;

dist/pushin.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
position: sticky;
2525
}
2626

27+
.pushin-scene--scroll-target-window {
28+
height: 100vh;
29+
}
30+
2731
.pushin-composition {
2832
flex: 0 0 100%;
2933
padding-top: 201%;

dist/pushin.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/umd/pushin.js

Lines changed: 60 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/umd/pushin.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)