css实现纸牌扑克牌洗牌效果代码
代码语言:html
所属分类:布局界面
代码描述:css实现纸牌扑克牌洗牌效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@font-face {
font-family: cards;
src: url("https://rlbaxter.us/fonts/cards.ttf");
}
body {
font-family: sans-serif;
padding: 5px 20px;
}
button {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
border: none;
font-size: 22px;
background: orange;
color: rgba(255, 255, 255, 0.7);
padding: 5px 20px;
border-radius: 8px;
box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.5);
cursor: pointer;
}
.table {
background: darkgreen;
border-radius: 25px;
padding: 25px;
box-sizing: border-box;
max-width: 900px;
color: #fff;
}
ul, li {
list-style: none;
margin: 0;
padding: 0;
}
#hands li {
display: inline-block;
padding: 10px;
vertical-align: top;
}
#hands li p {
margin: 0;
text-align: center;
background: rgba(0, 0, 0, 0.5);
color: #fff;
padding: 3px;
border-radius: 4px;
font-size: 12px;
color: rgba(255, 255, 255, 0.7);
}
#report li {
display: inline-block;
padding: 5px 15px;
border-radius: 4px;
margin: 5px;
background: rgba(0, 0, 0, 0.5);
font-size: 16px;
color: rgba(255, 255, 255, 0.7);
}
.playing-card {
position: relative;
width: 50px;
height: 75px;
display: inline-block;
padding: 5px;
font-family: cards;
line-height: 1.2;
text-transform: uppercase;
}
.playing-card:not(:first-child) {
margin-left: -42px;
}
.playing-card::before {
content: '';
d.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0