An animated word/phrase/sentence cloud generator. Animate your chosen text across the screen easily with this plug and play javascript prototype function which can be used on any HTML container.
WCG script will support words, phrases and sentences. i.e. all things string
Items will not stack on top of eachother due to WCG finding the correct regions for which to place the given items such that they won't stack.
Items shown on the word cloud are randomly picked from an array of strings to keep the word cloud fresh (requires enough strings to accomplish this).
The word cloud generated will support all client web browser sizes.
Include wcg.js inside your project and call the prototype function from wherever you desire.
e.g.
<section id="example"></section>
<script src="wcg.js"></script>
<script>
// container for wcg
let example = document.getElementById("example");
// create wcg object
example.wcg({
"words": [
"Hi!",
"Hallo!",
"Holla!",
"Γεία!",
"Bonjour!"
]
});
</script>This project is licensed under the MIT License - see the LICENSE.md file for details.
WCG utlizes the base model of WLCM JS by svichas.
