delu-mergejs
v1.0.0
Published
Adds a merge-effect to html elements
Downloads
1
Readme
mergeJS
How to use:
Create a container, style it as you please (DO NOT ADD A BACKGROUND COLOR)
Add all the child elements you wish to be affected by the merge-effect
Initialise the mergeJS, and add all the required properties.
- container = The container that hold the elements to merge
- mergeAmount = The amount of merging between elements
- sharpness = The sharpness of the merging elements
- childColor = The color to overlay over the merging elements
- inverted = Specify whether or not the background is light or dark (true = light background/false = dark background)
- Enjoy the cool merging effect
HINT:
Check out the example repo https://github.com/andreasdelu/mergeJS-example