-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from nateplusplus/next-release
Next release
- Loading branch information
Showing
43 changed files
with
1,772 additions
and
1,703 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
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,68 @@ | ||
import { PushInScene } from './pushInScene'; | ||
import { LayerOptions } from './types'; | ||
export declare class PushInLayer { | ||
private element; | ||
private index; | ||
private scene; | ||
private options; | ||
private originalScale; | ||
private ref; | ||
private params; | ||
constructor(element: HTMLElement, index: number, scene: PushInScene, options: LayerOptions | null); | ||
/** | ||
* Get all inpoints for the layer. | ||
*/ | ||
private getInpoints; | ||
/** | ||
* Get all outpoints for the layer. | ||
*/ | ||
private getOutpoints; | ||
/** | ||
* Get the push-in speed for the layer. | ||
*/ | ||
private getSpeed; | ||
/** | ||
* Set the z-index of each layer so they overlap correctly. | ||
*/ | ||
setZIndex(total: number): void; | ||
/** | ||
* Reset all the layer parameters. | ||
* | ||
* This is used if the window is resized | ||
* and things need to be recalculated. | ||
*/ | ||
resetLayerParams(): void; | ||
/** | ||
* Get the initial scale of the element at time of DOM load. | ||
*/ | ||
private getElementScaleX; | ||
/** | ||
* Whether or not a layer should currently be zooming. | ||
*/ | ||
private isActive; | ||
/** | ||
* Get the current inpoint for a layer, | ||
* depending on window breakpoint. | ||
*/ | ||
private getInpoint; | ||
/** | ||
* Get the current outpoint for a layer, | ||
* depending on window breakpoint. | ||
*/ | ||
private getOutpoint; | ||
/** | ||
* Get the scaleX value for the layer. | ||
*/ | ||
private getScaleValue; | ||
/** | ||
* Set element scale. | ||
*/ | ||
private setScale; | ||
/** | ||
* Set CSS styles to control the effect on each layer. | ||
* | ||
* This will control the scale and opacity of the layer | ||
* as the user scrolls. | ||
*/ | ||
setLayerStyle(): void; | ||
} |
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,27 @@ | ||
import { PushInLayer } from './pushInLayer'; | ||
import { PushIn } from './pushin'; | ||
import { SceneOptions } from './types'; | ||
export declare class PushInScene { | ||
pushin: PushIn; | ||
private container; | ||
layers: PushInLayer[]; | ||
speedDelta: number; | ||
transitionLength: number; | ||
layerDepth: number; | ||
options: SceneOptions; | ||
constructor(pushin: PushIn); | ||
/** | ||
* Set breakpoints for responsive design settings. | ||
*/ | ||
private setBreakpoints; | ||
/** | ||
* Find all layers on the page and store them with their parameters | ||
*/ | ||
private getLayers; | ||
/** | ||
* Get the array index of the current window breakpoint. | ||
*/ | ||
getBreakpointIndex(breakpoints: number[]): number; | ||
getTop(): number; | ||
getInpoints(): number[]; | ||
} |
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.