Float a number of things up on a page (hearts, flowers, 👌 ...)
You give the options in an object.
You give the options in an object.
floating
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options.content |
string |
optional |
'👌' | the character or string to float |
options.number |
number |
optional |
1 | the number of items |
options.duration |
number |
optional |
10 | the amount of seconds it takes to float up |
options.repeat |
number | string |
optional |
'infinite' | the number of times you want the animation to repeat |
options.direction |
string |
optional |
'normal' | The animation-direction of the main animation |
options.sizes |
number | array |
optional |
2 | The size (in em) of each element. Giving two values in an array will give a random size between those values. |