svg+css实现奖牌走光动画效果代码

代码语言:html

所属分类:动画

代码描述:svg+css实现奖牌走光动画效果代码

代码标签: svg css 奖牌 走光 动画

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

<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">

  
  
  
<style>
svg {
/* 	position:relative; */
	height:150px;
	width:150px;
/* 	border:1px solid red; */
}
body{
	background:#224;
}
.box {
	position:absolute;
	top:50%;
	left:50%;
	transform:translate(-50%,-50%);
	width:100%;
	text-align:center;
}
</style>



</head>

<body  >
  <div class="box">
	<svg id="gold" viewbox="0 0 100 100">
		<clipPath id="medalMask">
			<circle cx="50" cy="50" r="35" />
		</clipPath>
		<circle clip-path="url(#medalMask)" cx="50" cy="50" r="35" fill="gold" />
		<path clip-path="url(#medalMask)" d="M -10 90 L 0 100 L 100 0 L 90 -10" fill="rgba(255,255,255,1)">
			<animate id="shine" attributeName="d" value.........完整代码请登录后点击上方下载按钮下载查看

网友评论0