0.4.3 • Published 1 year ago

react-scatter-graphy v0.4.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.4.1-alpha4

1 year ago

0.4.1-alpha3

1 year ago

0.4.1-alpha2

1 year ago

0.4.1-alpha6

1 year ago

0.4.1-alpha

1 year ago

0.4.1

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.4.0

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.6-beta.22

2 years ago

0.3.6-beta.21

2 years ago

0.3.6-beta.20

2 years ago

0.3.6-beta.19

2 years ago

0.3.6-beta.18

2 years ago

0.3.6-beta.17

2 years ago

0.3.6-beta.16

2 years ago

0.3.6-beta.15

2 years ago

0.3.6-beta.14

2 years ago

0.3.6-beta.13

2 years ago

0.3.6-beta.12

2 years ago

0.3.6-beta.11

2 years ago

0.3.6-beta.10

2 years ago

0.3.6-beta.9

2 years ago

0.3.6-beta.8

2 years ago

0.3.6-beta.6

2 years ago

0.3.6-beta.5

2 years ago

0.3.6-beta.4

2 years ago

0.3.6-beta.3

2 years ago

0.3.6-beta.2

2 years ago

0.3.6-beta.1

2 years ago

0.3.6-beta.0

2 years ago

0.3.6-alpha10

2 years ago

0.3.6-alpha9

2 years ago

0.3.6-alpha8

2 years ago

0.3.6-alpha7

2 years ago

0.3.6-alpha6

2 years ago

0.3.6-alpha5

2 years ago

0.3.6-alpha4

2 years ago

0.3.6-alpha3

2 years ago

0.3.6-alpha2

2 years ago

0.3.6-alpha1

2 years ago

0.3.6-alpha

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago