GithubHelp home page GithubHelp logo

Comments (2)

kottenator avatar kottenator commented on May 28, 2024

First: I've checked and the event works fine:

var el = $('.circle-container').circleProgress({ value: 0.5 });
el.on('circle-animation-start', function () { console.log('animation started'); });
el.on('circle-animation-end', function () { console.log('animation finished'); });

Second: what you want to do is definitely should be done via CSS, like so:

.circle-container {
    position: relative;
    /* you don't have to set width and height */
}

.circle-container .middle-block {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, .5);
}

from jquery-circle-progress.

keithpickering avatar keithpickering commented on May 28, 2024

So I'm having this same issue for some reason, here is my code:

// Hide until animation starts
$this.css('opacity', 0);
var circle = $this.circleProgress({
    value: progress,
    size: 120,
    thickness: 5,
    reverse: true,
    startAngle: -Math.PI / 2,
    animation: {
        duration: 1200,
    },
    fill: {
        image: 'img/progress/meter-bg.png'
    },
    emptyFill: 'rgba(255,255,255,0.1)',
 });

circle.on('circle-animation-start', function(e) {
    console.log('start');
    $this.css('opacity', 1);
});

Nothing happens on the circle-animation-start event.

from jquery-circle-progress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.