Skip to content

Commit

Permalink
build v5.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nateplusplus committed Jul 10, 2022
1 parent 99d1f15 commit 19c93c1
Show file tree
Hide file tree
Showing 9 changed files with 135 additions and 40 deletions.
6 changes: 6 additions & 0 deletions dist/esm/pushin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@ export declare class PushIn {
private lastAnimationFrameId;
cleanupFns: VoidFunction[];
options: PushInOptions;
scrollTarget?: HTMLElement | string;
constructor(container: HTMLElement, options?: PushInOptions);
/**
* Initialize the object to start everything up.
*/
start(): void;
/**
* Get scrollTarget option from data attribute
* or JavaScript API.
*/
setScrollTarget(): void;
/**
* Set the target parameter and make sure
* pushin is always a child of that target.
Expand Down
78 changes: 60 additions & 18 deletions dist/esm/pushin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esm/pushin.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/esm/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export interface PushInOptions {
scene?: SceneOptions;
selector?: string;
target?: string;
scrollTarget?: string;
}
export interface PushInLayer {
element: HTMLElement;
Expand Down
4 changes: 4 additions & 0 deletions dist/pushin.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
position: sticky;
}

.pushin-scene--scroll-target-window {
height: 100vh;
}

.pushin-composition {
flex: 0 0 100%;
padding-top: 201%;
Expand Down
2 changes: 1 addition & 1 deletion dist/pushin.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 60 additions & 18 deletions dist/umd/pushin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/umd/pushin.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 19c93c1

Please sign in to comment.