css+svg实现鼠标悬浮箭头动画效果代码
代码语言:html
所属分类:悬停
代码描述:css+svg实现鼠标悬浮箭头动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: lightblue;
}
path,
poyline {
transition: all 250ms ease;
}
.svg-container-1 {
background: MediumSlateBlue;
color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100px;
height: 75px;
padding: 10px;
transition: background 250ms ease;
cursor: pointer;
}
.svg-container-1:hover {
background: SlateBlue;
}
.svg-1:hover .path-1 {
stroke-dashoffset: 0;
}
.path-1 {
stroke-dasharray: 1;
stroke-dashoffset: -0.5;
}
.svg-container-2 {
background: MediumSlateBlue;
color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100px;
hei.........完整代码请登录后点击上方下载按钮下载查看
网友评论0