css实现硬币翻转动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现硬币翻转动画效果代码

代码标签: 翻转 动画 效果

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


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

<head>

 
<meta charset="UTF-8">
 

 
<style>
:root {
  --face: #be9d66;
  --lowlight: #111;
  --side: #896c3b;
  --side-dark: #120e08;
  --coin-size: 7rem;
  --coin-face: url('//repo.bfw.wiki/bfwrepo/image/5fd7fd983ff62.png');
}

html {
  height: 100%;
}

body {
  height: 100%;
  background-color: silver;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*
  everything above is positioning and variables.
  this is where the real fun begins...
*/

.coin {
  height: var(--coin-size);
  width: var(--coin-size);
  margin: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.coin::before {
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0