2.1.8 • Published 6 months ago

@types/react-animate-on-scroll v2.1.8

Weekly downloads
3,362
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/react-animate-on-scroll

Summary

This package contains type definitions for react-animate-on-scroll (https://github.com/dbramwell/react-animate-on-scroll).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-animate-on-scroll.

index.d.ts

// Type definitions for react-animate-on-scroll 2.1
// Project: https://github.com/dbramwell/react-animate-on-scroll, http://dbramwell.github.io/react-animate-on-scroll
// Definitions by: Ricardo Albuquerque <https://github.com/ralbuque>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import * as React from 'react';

export interface ScrollAnimationProps {
    animateIn?: string | undefined;
    animateOut?: string | undefined;
    children?: React.ReactNode;
    offset?: number | undefined;
    duration?: number | undefined;
    delay?: number | undefined;
    initiallyVisible?: boolean | undefined;
    animateOnce?: boolean | undefined;
    style?: object | undefined;
    scrollableParentSelector?: string | undefined;
    className?: string | undefined;
    animatePreScroll?: boolean | undefined;
    afterAnimatedOut?: (visibile: VisibleType) => {} | undefined;
    afterAnimatedIn?: (visibile: VisibleType) => {} | undefined;
}

export interface VisibleType {
    inViewport: boolean;
    onScreen: boolean;
}

export default class ScrollAnimation extends React.Component<ScrollAnimationProps> {
    constructor(props: ScrollAnimationProps);
}

Additional Details

  • Last updated: Sat, 13 Nov 2021 00:01:24 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Ricardo Albuquerque.

2.1.6

8 months ago

2.1.8

6 months ago

2.1.7

7 months ago

2.1.5

2 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.2

5 years ago

2.1.1

6 years ago

2.1.0

6 years ago