1.0.4 • Published 1 year ago

@infini-components/efx-zoomin v1.0.4

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

@infini-components/efx-zoomin

A React component that animates an image element when a gif is 95% complete.

Installation

npm install @infini-components/efx-zoomin

Usage

import React from 'react';
import ZoomInEFX from '@infini-components/efx-zoomin';

function MyComponent() {
  return (
    <ZoomInEFX gifSrc="/path/to/gif.gif" gifDuration={5} />
  );
}

Props

Name: gifSrc Type: string Required: Yes Default: Description: The source URL of the gif.

Name: gifDuration Type: number Required: No Default: Description: The duration of the gif in seconds. If not provided, the duration will be determined by reading the duration property of the HTMLImageElement.

Publishing to npm and Bumping the Version

npm publish
npm version patch

This will publish the package to npm and bump the patch version (e.g. from 1.0.0 to 1.0.1). You can also use minor or major to bump the minor or major version number.

1.0.4

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago