Echarts可视化教程

  1. 网站首页
  2. 百度ECharts
  3. ECharts实例
  4. ECharts入门
  5. 地图大全
  6. ECharts官网

css3结合animation实现椭圆光点旋转

//html
<div class="ellipse">
  <div class="animate"></div>
</div>


//css
body{
  background: #030c2b
}
.ellipse {
  position: relative;
  width: calc(50vh);
  height: calc(50vh);
  border: 1px solid rgba(43, 111, 253, .8);
  border-radius: 50%;
  z-index: 10;
  animation: spin 3s infinite linear;
}

.animate {
  position: absolute;
  left: calc(5vh);
  top: calc(7vh);
  transform: rotate(18deg);
  background: #58aee2; //最好用图片,用图片box-shadow和border-radius可以删掉
  width: 15px;
  height: 15px;
  border-radius: 100%;
  box-shadow: 0 0 20px -5px rgba(255, 255, 255, 0.7), 0 0 30px -10px rgba(255, 255, 255, 0.5), 0 0 50px -15px rgba(255, 255, 255, 0.3);
  animation: anti-spin 3s infinite linear;
}
@keyframes spin {
  0% {
    transform: rotate(20deg) scaleY(.5) rotate(0deg);
  }

  100% {
    transform: rotate(20deg) scaleY(.5) rotate(360deg);
  }
}

@keyframes anti-spin {
  0% {
    transform: rotate(0deg) scaleY(2) rotate(20deg) scale(1);
  }

  100% {
    transform: rotate(-360deg) scaleY(2) rotate(20deg) scale(1);
  }
}
点击展开全文

相关文章

  1. 百度Echarts中国相声名家师承关系图
  2. ECharts水球图图表展示数据占比和目标完成情况
  3. 如何利用ECharts中使用地图热力图展示城市热度
  4. 如何利用ECharts中使用地图展示数据
  5. ECharts多轴图如何实现多维度数据