Comments (6)
w/o changing source code, I add unbind in event callback to fix this issue temporarily:
.on('circle-animation-end', function(event){
//blabla ......
$(this).unbind();
});
from jquery-circle-progress.
Hi!
Sorry for delayed reply. Could you, please, give an example, how exactly can I reproduce this issue? (full code example)
from jquery-circle-progress.
First of, awesome plugin many thanks.
See code below, "end" will be called twice(directly and when animation is finished).
$('.preloader .circle').circleProgress({
value: 1,
size: 100,
emptyFill: "rgba(68,68,68,1)",
fill: {
color: "#ffba00"
}}).on('circle-animation-end', function(event) {
console.log( "end" )
});
Adding javascript el.unbind();
to src will fix this
from jquery-circle-progress.
But it's absolutely normal behavior. You attach event handler twice - and it's triggered twice.
If you want to re-use the same circle but to trigger the event only once, do next:
$('.preloader .circle').circleProgress({
value: 1,
size: 100,
emptyFill: "rgba(68,68,68,1)",
fill: {
color: "#ffba00"
}
});
$('.preloader .circle').on('circle-animation-end', function(event) {
console.log("end");
});
// event is triggered once
$('.preloader .circle').circleProgress({
// ...
});
// event is triggered once more, but not twice
from jquery-circle-progress.
Have I solved your problem? Or haven't I understood it?
from jquery-circle-progress.
Hi,
Sorry for the late reply. Yes thanks I updated my code with your and it worked perfect.
from jquery-circle-progress.
Related Issues (20)
- Adding to Google Web Designer
- Drawing a rectangle
- Unable to import in a vue project
- Add a drop shadow to the circles
- Conflict With Other Libraries (Waypoints) when loading with RequireJs, Loads jquery twice
- Progress Bar is moving faster than percentage HOT 1
- RTL HOT 1
- Arc inside circle
- Load animation on viewport
- NaN
- allow passing custom jQuery into UMD factory
- Text in the middle of the circle HOT 5
- How to stop and start (circleProgress)
- How to Change Color Dynamically on "circle-animation-progress"
- Can it be set as 100% based on Seconds? HOT 1
- startAngle seems HOT 2
- [Solved] Change the class
- Can we make the color change at 100% and above?
- How to add gradient color through html like the way we add color ?? (<div class="circle" data-fill="{ "color": "rgba(0, 0, 0, .3)" }" ></div>) HOT 1
- No onDone function support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-circle-progress.