html实现录制关键帧动画播放效果

代码语言:html

所属分类:布局界面

代码描述:html实现录制关键帧动画播放效果

代码标签: 关键 动画 播放 效果

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

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
html {
  height: calc(100% - 2em);
  background: #f21b42;
}

body {
  background: #f1f1f1;
  height: 100%;
  margin: 1em;
  padding: 0;
  border-radius: 1em;
  font-family: sans-serif;
}

.actor {
  width: 100px;
  height: 100px;
  
  background:#03588c;
  
 
  
  position: absolute;
  will-change: top, left;
  cursor: move;
  border-radius: 50px;
  top: calc(30% - 50px);
  left: calc(50% - 50px);
  z-index:1;
}

button {
  background: #03588c;
  color: white;
  border: none;
  padding: 0.8em 1.2em;
  border-radius: 0.5em;
  letter-spacing: 1px;
  cursor: pointer;
}
button:hover, button:focus {
  box-shadow: 0 0 0 3px #05dbf2;
  background: #02446c;
  border:none;
  outline:none;
}

button:active{
  background:#012a43;
  box-shadow: none;
  border:none;
  outline:none;
}

button:disabled {
  opacity: 0.5;
  cursor: auto;
  box-shadow: none;
  background: #03588c;
}

.actor:hover {
  box-shadow: 0 0 0 4px #F2B705, 0 0 0 8px inset #02446c;
  /* backgr.........完整代码请登录后点击上方下载按钮下载查看

网友评论0