svg+css实现删除按钮悬浮放大效果代码

代码语言:html

所属分类:悬停

代码描述:svg+css实现删除按钮悬浮放大效果代码

代码标签: svg css 删除 按钮 悬浮 放大

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

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" />
  
     <style>
          body{
         background: black;
         display: flex;
         padding: 100px;
         justify-content: center;
         align-content: center;
     }
     .button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgb(20, 20, 20);
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.164);
  cursor: pointer;
  transition-duration: .3s;
  overflow: hidden;
  position: relative;
}

.svgIcon {
  width: 12px;
  transition-duration: .3s;
}

.svgIcon path {
  fill: white;
}

.button:hover {
  width: 140px;

  border-radius: 50px;
  transition-duration: .3s;
 .........完整代码请登录后点击上方下载按钮下载查看

网友评论0