Super cool JavaScript text cloud/Tag cloud effect –d3 Cloud

Source: Internet
Author: User

Online Demo

If you want to create a nice text cloud or tag cloud effect, you can consider using D3-cloud, which is an awesome open source font cloud effect JavaScript class library, based on the well-known d3.js, can help you generate similar wordle.com style fonts or tag cloud effects.

This class library uses the HTML5 canvas to generate the font effect, and the entire layout algorithm can be implemented asynchronously, only to set the time block size. and supports animated effects. The overall performance is very good.

text, font and font size, rotation, and border distances can all be customized. Contains two events:

  • word– when each text is added and triggered
  • end– triggers when all text is added

Of course, Web fonts are supported, and you can use @font-face to set the font style. If you can apply to your own website, it will certainly be able to give your site a lot of color!

Source: Super Cool JavaScript text cloud/Tag cloud effect –d3 Cloud



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.