css+svg列表选中勾选动画效果代码

代码语言:html

所属分类:表单美化

代码描述:css+svg列表选中勾选动画效果代码

代码标签: css svg 列表 选中 勾选 动画

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

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

<head>
    <meta charset="UTF-8">
    <style>
        .todo-list {
          background: #FFF;
          font-size: 20px;
          max-width: 15em;
          margin: auto;
          padding: 0.5em 1em;
          box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
        }
        .todo {
          display: block;
          position: relative;
          padding: 1em 1em 1em 16%;
          margin: 0 auto;
          cursor: pointer;
          border-bottom: solid 1px #ddd;
        }
        .todo:last-child {
          border-bottom: none;
        }
        .todo__state {
          position: absolute;
          top: 0;
          left: 0;
          opacity: 0;
        }
        .todo__text {
          color: #135156;
          -webkit-transition: all 0.4s linear 0.4s;
          transition: all 0.4s linear 0.4s;
        }
        .todo__icon {
          position: absolute;
          top: 0;
          bottom: 0;
          left: 0;
          width: 100%;
          height: auto;
          margin: auto;
          fill: none;
          stroke: #27FDC7;
          stroke-width: 2;
          stroke-linejoin: round;
          stroke-linecap: round;
        }
        .todo__line,
        .todo__box,
        .todo__check {
          -webkit-transition: stroke-dashoffset 0.8s cubic-bezier(0.9, 0, 0.5, 1);
          transition: stroke-dashoffset 0.8s cubic-.........完整代码请登录后点击上方下载按钮下载查看

网友评论0