0.4.3 • Published 12 months ago

react-scatter-graphy v0.4.3

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

react-scatter-graphy

Image src based retro typography with scattering animation.

When you hover the mouse cursor over the scattered pixels, it is animated as the original image.

You can also use react-scatter-graphy not only typography image but also normal image

Currently, PNG formats are more effective than JPEG formats.

Features

  • Convert images to pixels
  • Automated optimization for large number of pixels
  • Automated pixel color
  • Automated resize
  • Supports JPEG, PNG images format

Installing

Using npm:

$ npm install react-scatter-graphy

Using yarn:

$ yarn add react-scatter-graphy

Example

import { ScatterGraphy } from 'react-scatter-graphy';

function App() {
  return (
    <div style={{ width: '50%' }}>
      <ScatterGraphy
        src={yourImage}
        size={pixelSize}
        shape={pixelShape}
        duration={animationDuration}
        color={pixelColor}
        resizeDelay={delayWhenResize}
      />
    </div>
  );
}

export default App;

Props

PropTypeDefaultRequiredDescription
srcstringImage src.
sizenumber1Number to multiply automatically calculated pixel size. In most cases, 1 is the optimal size.
shape'circle | square'squarePixel shape.
durationnumber500Pixel animation duration.
colorcolorImage pixel colorImage pixel color. The default value is set to the pixel color of the image.
resizeDelaynumber500Delay when screen resize event occurs.

Development

$ yarn
$ yarn storybook

Maintainers

This project is maintained by Geonyeol Ryu.

License

MIT © react-scatter-graphy. See LICENSE for details.

0.4.1-alpha5

12 months ago

0.4.1-alpha4

12 months ago

0.4.1-alpha3

12 months ago

0.4.1-alpha2

12 months ago

0.4.1-alpha6

12 months ago

0.4.1-alpha

12 months ago

0.4.1

12 months ago

0.4.3

12 months ago

0.4.2

12 months ago

0.4.0

12 months ago

0.3.8

1 year ago

0.3.7

1 year ago

0.3.6-beta.22

1 year ago

0.3.6-beta.21

1 year ago

0.3.6-beta.20

1 year ago

0.3.6-beta.19

1 year ago

0.3.6-beta.18

1 year ago

0.3.6-beta.17

1 year ago

0.3.6-beta.16

1 year ago

0.3.6-beta.15

1 year ago

0.3.6-beta.14

1 year ago

0.3.6-beta.13

1 year ago

0.3.6-beta.12

1 year ago

0.3.6-beta.11

1 year ago

0.3.6-beta.10

1 year ago

0.3.6-beta.9

1 year ago

0.3.6-beta.8

1 year ago

0.3.6-beta.6

1 year ago

0.3.6-beta.5

1 year ago

0.3.6-beta.4

1 year ago

0.3.6-beta.3

1 year ago

0.3.6-beta.2

1 year ago

0.3.6-beta.1

1 year ago

0.3.6-beta.0

1 year ago

0.3.6-alpha10

1 year ago

0.3.6-alpha9

1 year ago

0.3.6-alpha8

1 year ago

0.3.6-alpha7

1 year ago

0.3.6-alpha6

1 year ago

0.3.6-alpha5

1 year ago

0.3.6-alpha4

1 year ago

0.3.6-alpha3

1 year ago

0.3.6-alpha2

1 year ago

0.3.6-alpha1

1 year ago

0.3.6-alpha

1 year ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago