Magical colored flying circles.
Main functionality based on animate method. You can use random colors, sizes, opacity if the corresponding property enabled in options.
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(function(){
Dots.generate();
});
</script>
<script src="jquery.flying-circles.js"></script>Selector property used for parent container of all circles elements
string: '.moving-circles'
This property shows count of elements per parent's container area
number: 100
Basic color of the circles (NOTE: if you set randomColor option's value as true, color setting will be ignored )
string: 'red'
Width and height of each circle (in px)
number: 20
Duration of circle moving (random value from speed option to speed, divided to 5)
number: 20000
Width of the parent container (px or % сould be used). Percentage implies calculating of value in pixels of selected area. If you are using percentage value - use it as string
string: '100%'
Same as width
string: '100%'
Randomizes opacity of the circle while moving (from 0 to 1). Boolean value.
boolean: true
Randomizes size of the circle while moving (from size property multiplied by 2, to 1px). Boolean value.
boolean: true
Randomizes colors of circles while moving (random rgb() numbers). Boolean value.
boolean: true
Copyright © Timur Rzakulizadeh
Licensed under the MIT license.
