Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use js ircles

Shulou Source: shulou.com Published: 2022-06-02 15:42:29 10月03日 Update

This article mainly explains "how to use js ircles". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to use js ircles.

Ircles is a lightweight JavaScript round progress bar plug-in based on html5SVG. The circular progress bar has the characteristics of responsive and animatable, and can create the effect of the circular progress bar entering the viewport to start the animation.

The use of ircles

Include circles.js or circles.min.js files in the html file. There is no dependency.

Create a placeholder div in html:

By calling to create the graph, the id should match the id of the placeholder:

Ircles initialization plug-in

VarmyCircle=Circles.create ({

Id:'circles-1'

Radius:60

Value:43

MaxValue:100

Width:10

Text:function (value) {returnvalue+'%';}

Colors: ['# D3B6C6 'jurisdiction 4B253A']

Duration:400

WrpClass:'circles-wrp'

TextClass:'circles-text'

ValueStrokeClass:'circles-valueStroke'

MaxValueStrokeClass:'circles-maxValueStroke'

StyleWrapper:true

StyleText:true

})

Thank you for your reading, the above is the content of "how to use js ircles", after the study of this article, I believe you have a deeper understanding of how to use js ircles, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Circles progress learning content animation plug-ins files eloquence graphics that is ideas situations effects articles more features knowledge knowledge points articles follow Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Xiaomi Docker MariaDB macOS