vue实现数字进度条倒计时效果代码

代码语言:html

所属分类:其他

代码描述:vue实现数字进度条倒计时效果代码

代码标签: vue 数字 进度条 倒计时

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!doctype html>
<html>

<head>
    <meta charset="utf-8">

    <style>
        #app {
	width:100%;
	height:100vh;
	display:flex;
	justify-content:center;
	align-items:center;
}
.svg-count {
	position:relative;
	width:100px;
	height:100px;
}
.svg-circle {
	width:100px;
	height:100px;
}
.count-number {
	width:100%;
	height:100%;
	position:absolute;
	left:0;
	top:0;
	line-height:100px;
	text-align:center;
	color:#fff;
	font-size:66px;
}
.alert-sec-circle {
	transition:stroke-dashoffset 1s linear;
}
    </style>
</head>

<body>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue@2.6.1-dev.js"></script>
    <div id="app">
        <div class="svg-count">
            <svg class="svg-circle" :viewbox="'0 0 ' + circle.width + ' ' + circle.width">
<circle :cx="svgRadius" :cy="svgRadius" :r="r" fill="#ccc" stroke="#409eff" :stroke-width="circle.strokeWidth">
</circle>
<circle :cx="svgRadius" :cy="svgRadius" :r="r" fill="transparent" stroke="#ff0000" class="alert-sec-circle" :class="{'transiton0' : second ==  countType}&qu.........完整代码请登录后点击上方下载按钮下载查看

网友评论0