Skip to content

Commit

Permalink
fix: add opacity transition (#3505)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuner authored Jan 8, 2021
1 parent 6487412 commit 110304b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/vc-progress/src/Circle.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function getPathStyles(offset, percent, strokeColor, strokeWidth, gapDegree = 0,
strokeDasharray: `${(percent / 100) * (len - gapDegree)}px ${len}px`,
strokeDashoffset: `-${gapDegree / 2 + (offset / 100) * (len - gapDegree)}px`,
transition:
'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s', // eslint-disable-line
'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s', // eslint-disable-line
};

return {
Expand Down Expand Up @@ -116,7 +116,8 @@ const Circle = defineComponent({
d: pathString,
stroke,
'stroke-linecap': strokeLinecap,
'stroke-width': ptg === 0 ? 0 : strokeWidth,
'stroke-width': strokeWidth,
opacity: ptg === 0 ? 0 : 1,
'fill-opacity': '0',
class: `${prefixCls}-circle-path`,
style: pathStyle,
Expand Down

0 comments on commit 110304b

Please sign in to comment.