动画未在Internet Explorer 11中显示

时间:2019-05-07 00:18:25

标签: html css animation

我一直在努力使这种心跳动画生效。我终于在Chrome浏览器中找到了正确的位置。...在IE 11中打开了它,什么都没有。...

任何人都有一种解决方法,可以使此心跳正常工作。

.heartbeatloader {
  z-index: -2;
  margin: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.svgdraw {
  top: 0px;
  left: 0px;
  width: 70px;
  height: 70px;
  transform: scale(1.1);
  z-index: 3;
}

.path {
  stroke: black;
  stroke-width: 6;
  stroke-dasharray: 1000px;
  stroke-dashoffset: 1000px;
  animation: draw 1.9s infinite forwards normal linear;
  animation-delay: 0.1s;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes outerbeat {
  0% {
    transform: scale(1.2);
  }
  10% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1.3);
  }
  60% {
    transform: scale(1.25);
  }
  75% {
    transform: scale(1.3);
  }
}
<div class="heartbeatloader">
  <svg class="svgdraw" width="50%" height="50%" viewBox="0 0 15 300" xmlns="http://www.w3.org/2000/svg">
            <path class="path" d="M 0 200 l 40 0 l 5 -40 l 5 40 l 10 0 l 5 15 l 10 -140 l 10 220 l 5 -95 l 10 0 l 5 20 l 5 -20 l 30 0" fill="transparent" stroke-width="2" stroke="black"/>
        </svg>
</div>

https://codepen.io/anon/pen/VOYZOx

0 个答案:

没有答案