纯css实现svg动画过渡效果
代码语言:html
所属分类:动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Varela+Round&display=swap'>
<style>
.nav {
--color: #ffffff;
background: none;
width: 100px;
height: 56px;
position: relative;
display: -webkit-box;
display: flex;
-webkit-box-pack: center;
justify-content: center;
-webkit-box-align: center;
align-items: center;
}
.nav svg {
fill: none;
stroke: var(--color);
stroke-width: 7px;
stroke-linecap: round;
stroke-linejoin: round;
}
.nav svg use:nth-of-type(1) {
opacity: 1;
stroke-dashoffset: 221;
stro.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0