MAGEEWP

Themes for WordPress

MAGEEWP

Themes for WordPress

Homepage Forums Magee Shortcodes piechart animation

This topic contains 1 reply, has 2 voices, and was last updated by  chengyh 11 months, 1 week ago.

  • Author
    Posts
  • #50456

    Simone Igino Amadio
    Participant
    • Topics: 1
    • Replies: 0
    • Total posts: 1

    Hi how can i customize delay and speed times on shortcodes?thanks

  • #50747

    chengyh
    Participant
    • Topics: 0
    • Replies: 44
    • Total posts: 44

    Hello replace the code

    piechart.easyPieChart({
    barColor: piechart.data("barcolor"),
    trackColor: piechart.data("trackcolor"),
    scaleColor: false,
    lineWidth: 10,
    trackWidth: 10,
    size: piechart.data("size"),
    lineCap: piechart.data("linecap"),
      });

    on magee-shortcodes\assets\js\magee-shortcodes.js use this:

    setTimeout(function() {
    piechart.easyPieChart({
    barColor: piechart.data("barcolor"),
    trackColor: piechart.data("trackcolor"),
    scaleColor: false,
    lineWidth: 10,
    trackWidth: 10,
    size: piechart.data("size"),
    lineCap: piechart.data("linecap"),
    animate: {
    duration: 5000,
    enabled: true
    },
      }); 
      },5000);

    The Animate parameter represents speed times,setTimeout represents delay.

    • This reply was modified 11 months, 1 week ago by  chengyh.

You must be logged in to reply to this topic.