css3扑克牌翻转,CSS3 回旋的扑克牌

CSS

语言:

CSSSCSS

确定

html, body {

height: 100%; }

body {

overflow: hidden;

background: black; }

.wrap {

position: relative;

-webkit-transform-style: preserve-3d;

transform-style: preserve-3d;

-webkit-perspective: 300px;

perspective: 300px;

height: 100%; }

.c {

height: 80px;

width: 80px;

background: black;

position: absolute;

top: 50%;

left: 50%;

margin-top: -40px;

margin-left: -40px;

-webkit-animation: round 2s infinite linear;

animation: round 2s infinite linear;

/* border-radius: 50%; */

border: 2px solid; }

.c:nth-child(1) {

-webkit-animation-delay: -0.02s;

animation-delay: -0.02s;

background: rgba(242, 0, 255, 0.4);

border-color: #f200ff; }

.c:nth-child(2) {

-webkit-animation-delay: -0.04s;

animation-delay: -0.04s;

background: rgba(229, 0, 255, 0.4);

border-color: #e500ff; }

.c:nth-child(3) {

-webkit-animation-delay: -0.06s;

animation-delay: -0.06s;

background: rgba(217, 0, 255, 0.4);

border-color: #d900ff; }

.c:nth-child(4) {

-webkit-animation-delay: -0.08s;

animation-delay: -0.08s;

background: rgba(204, 0, 255, 0.4);

border-color: #c0f; }

.c:nth-child(5) {

-webkit-animation-delay: -0.1s;

animation-delay: -0.1s;

background: rgba(191, 0, 255, 0.4);

border-color: #bf00ff; }

.c:nth-child(6) {

-webkit-animation-delay: -0.12s;

animation-delay: -0.12s;

background: rgba(179, 0, 255, 0.4);

border-color: #b300ff; }

.c:nth-child(7) {

-webkit-animation-delay: -0.14s;

animation-delay: -0.14s;

background: rgba(166, 0, 255, 0.4);

border-color: #a600ff; }

.c:nth-child(8) {

-webkit-animation-delay: -0.16s;

animation-delay: -0.16s;

background: rgba(153, 0, 255, 0.4);

border-color: #90f; }

.c:nth-child(9) {

-webkit-animation-delay: -0.18s;

animation-delay: -0.18s;

background: rgba(140, 0, 255, 0.4);

border-color: #8c00ff; }

.c:nth-child(10) {

-webkit-animation-delay: -0.2s;

animation-delay: -0.2s;

background: rgba(127, 0, 255, 0.4);

border-color: #7f00ff; }

.c:nth-child(11) {

-webkit-animation-delay: -0.22s;

animation-delay: -0.22s;

background: rgba(115, 0, 255, 0.4);

border-color: #7300ff; }

.c:nth-child(12) {

-webkit-animation-delay: -0.24s;

animation-delay: -0.24s;

background: rgba(102, 0, 255, 0.4);

border-color: #60f; }

.c:nth-child(13) {

-webkit-animation-delay: -0.26s;

animation-delay: -0.26s;

background: rgba(89, 0, 255, 0.4);

border-color: #5900ff; }

.c:nth-child(14) {

-webkit-animation-delay: -0.28s;

animation-delay: -0.28s;

background: rgba(77, 0, 255, 0.4);

border-color: #4d00ff; }

.c:nth-child(15) {

-webkit-animation-delay: -0.3s;

animation-delay: -0.3s;

background: rgba(64, 0, 255, 0.4);

border-color: #4000ff; }

.c:nth-child(16) {

-webkit-animation-delay: -0.32s;

animation-delay: -0.32s;

background: rgba(51, 0, 255, 0.4);

border-color: #30f; }

.c:nth-child(17) {

-webkit-animation-delay: -0.34s;

animation-delay: -0.34s;

background: rgba(38, 0, 255, 0.4);

border-color: #2600ff; }

.c:nth-child(18) {

-webkit-animation-delay: -0.36s;

animation-delay: -0.36s;

background: rgba(25, 0, 255, 0.4);

border-color: #1900ff; }

.c:nth-child(19) {

-webkit-animation-delay: -0.38s;

animation-delay: -0.38s;

background: rgba(13, 0, 255, 0.4);

border-color: #0d00ff; }

.c:nth-child(20) {

-webkit-animation-delay: -0.4s;

animation-delay: -0.4s;

background: rgba(0, 0, 255, 0.4);

border-color: blue; }

.c:nth-child(21) {

-webkit-animation-delay: -0.42s;

animation-delay: -0.42s;

background: rgba(0, 13, 255, 0.4);

border-color: #000dff; }

.c:nth-child(22) {

-webkit-animation-delay: -0.44s;

animation-delay: -0.44s;

background: rgba(0, 25, 255, 0.4);

border-color: #0019ff; }

.c:nth-child(23) {

-webkit-animation-delay: -0.46s;

animation-delay: -0.46s;

background: rgba(0, 38, 255, 0.4);

border-color: #0026ff; }

.c:nth-child(24) {

-webkit-animation-delay: -0.48s;

animation-delay: -0.48s;

background: rgba(0, 51, 255, 0.4);

border-color: #03f; }

.c:nth-child(25) {

-webkit-animation-delay: -0.5s;

animation-delay: -0.5s;

background: rgba(0, 64, 255, 0.4);

border-color: #0040ff; }

.c:nth-child(26) {

-webkit-animation-delay: -0.52s;

animation-delay: -0.52s;

background: rgba(0, 76, 255, 0.4);

border-color: #004cff; }

.c:nth-child(27) {

-webkit-animation-delay: -0.54s;

animation-delay: -0.54s;

background: rgba(0, 89, 255, 0.4);

border-color: #0059ff; }

.c:nth-child(28) {

-webkit-animation-delay: -0.56s;

animation-delay: -0.56s;

background: rgba(0, 102, 255, 0.4);

border-color: #06f; }

.c:nth-child(29) {

-webkit-animation-delay: -0.58s;

animation-delay: -0.58s;

background: rgba(0, 115, 255, 0.4);

border-color: #0073ff; }

.c:nth-child(30) {

-webkit-animation-delay: -0.6s;

animation-delay: -0.6s;

background: rgba(0, 127, 255, 0.4);

border-color: #007fff; }

.c:nth-child(31) {

-webkit-animation-delay: -0.62s;

animation-delay: -0.62s;

background: rgba(0, 140, 255, 0.4);

border-color: #008cff; }

.c:nth-child(32) {

-webkit-animation-delay: -0.64s;

animation-delay: -0.64s;

background: rgba(0, 153, 255, 0.4);

border-color: #09f; }

.c:nth-child(33) {

-webkit-animation-delay: -0.66s;

animation-delay: -0.66s;

background: rgba(0, 166, 255, 0.4);

border-color: #00a6ff; }

.c:nth-child(34) {

-webkit-animation-delay: -0.68s;

animation-delay: -0.68s;

background: rgba(0, 178, 255, 0.4);

border-color: #00b2ff; }

.c:nth-child(35) {

-webkit-animation-delay: -0.7s;

animation-delay: -0.7s;

background: rgba(0, 191, 255, 0.4);

border-color: deepskyblue; }

.c:nth-child(36) {

-webkit-animation-delay: -0.72s;

animation-delay: -0.72s;

background: rgba(0, 204, 255, 0.4);

border-color: #0cf; }

.c:nth-child(37) {

-webkit-animation-delay: -0.74s;

animation-delay: -0.74s;

background: rgba(0, 217, 255, 0.4);

border-color: #00d9ff; }

.c:nth-child(38) {

-webkit-animation-delay: -0.76s;

animation-delay: -0.76s;

background: rgba(0, 229, 255, 0.4);

border-color: #00e5ff; }

.c:nth-child(39) {

-webkit-animation-delay: -0.78s;

animation-delay: -0.78s;

background: rgba(0, 242, 255, 0.4);

border-color: #00f2ff; }

.c:nth-child(40) {

-webkit-animation-delay: -0.8s;

animation-delay: -0.8s;

background: rgba(0, 255, 255, 0.4);

border-color: cyan; }

.c:nth-child(41) {

-webkit-animation-delay: -0.82s;

animation-delay: -0.82s;

background: rgba(0, 255, 242, 0.4);

border-color: #00fff2; }

.c:nth-child(42) {

-webkit-animation-delay: -0.84s;

animation-delay: -0.84s;

background: rgba(0, 255, 230, 0.4);

border-color: #00ffe6; }

.c:nth-child(43) {

-webkit-animation-delay: -0.86s;

animation-delay: -0.86s;

background: rgba(0, 255, 217, 0.4);

border-color: #00ffd9; }

.c:nth-child(44) {

-webkit-animation-delay: -0.88s;

animation-delay: -0.88s;

background: rgba(0, 255, 204, 0.4);

border-color: #0fc; }

.c:nth-child(45) {

-webkit-animation-delay: -0.9s;

animation-delay: -0.9s;

background: rgba(0, 255, 191, 0.4);

border-color: #00ffbf; }

.c:nth-child(46) {

-webkit-animation-delay: -0.92s;

animation-delay: -0.92s;

background: rgba(0, 255, 179, 0.4);

border-color: #00ffb3; }

.c:nth-child(47) {

-webkit-animation-delay: -0.94s;

animation-delay: -0.94s;

background: rgba(0, 255, 166, 0.4);

border-color: #00ffa6; }

.c:nth-child(48) {

-webkit-animation-delay: -0.96s;

animation-delay: -0.96s;

background: rgba(0, 255, 153, 0.4);

border-color: #0f9; }

.c:nth-child(49) {

-webkit-animation-delay: -0.98s;

animation-delay: -0.98s;

background: rgba(0, 255, 140, 0.4);

border-color: #00ff8c; }

.c:nth-child(50) {

-webkit-animation-delay: -1s;

animation-delay: -1s;

background: rgba(0, 255, 128, 0.4);

border-color: #00ff80; }

.c:nth-child(51) {

-webkit-animation-delay: -1.02s;

animation-delay: -1.02s;

background: rgba(0, 255, 115, 0.4);

border-color: #00ff73; }

.c:nth-child(52) {

-webkit-animation-delay: -1.04s;

animation-delay: -1.04s;

background: rgba(0, 255, 102, 0.4);

border-color: #0f6; }

.c:nth-child(53) {

-webkit-animation-delay: -1.06s;

animation-delay: -1.06s;

background: rgba(0, 255, 89, 0.4);

border-color: #00ff59; }

.c:nth-child(54) {

-webkit-animation-delay: -1.08s;

animation-delay: -1.08s;

background: rgba(0, 255, 77, 0.4);

border-color: #00ff4d; }

.c:nth-child(55) {

-webkit-animation-delay: -1.1s;

animation-delay: -1.1s;

background: rgba(0, 255, 64, 0.4);

border-color: #00ff40; }

.c:nth-child(56) {

-webkit-animation-delay: -1.12s;

animation-delay: -1.12s;

background: rgba(0, 255, 51, 0.4);

border-color: #0f3; }

.c:nth-child(57) {

-webkit-animation-delay: -1.14s;

animation-delay: -1.14s;

background: rgba(0, 255, 38, 0.4);

border-color: #00ff26; }

.c:nth-child(58) {

-webkit-animation-delay: -1.16s;

animation-delay: -1.16s;

background: rgba(0, 255, 25, 0.4);

border-color: #00ff19; }

.c:nth-child(59) {

-webkit-animation-delay: -1.18s;

animation-delay: -1.18s;

background: rgba(0, 255, 13, 0.4);

border-color: #00ff0d; }

.c:nth-child(60) {

-webkit-animation-delay: -1.2s;

animation-delay: -1.2s;

background: rgba(0, 255, 0, 0.4);

border-color: lime; }

.c:nth-child(61) {

-webkit-animation-delay: -1.22s;

animation-delay: -1.22s;

background: rgba(13, 255, 0, 0.4);

border-color: #0dff00; }

.c:nth-child(62) {

-webkit-animation-delay: -1.24s;

animation-delay: -1.24s;

background: rgba(26, 255, 0, 0.4);

border-color: #1aff00; }

.c:nth-child(63) {

-webkit-animation-delay: -1.26s;

animation-delay: -1.26s;

background: rgba(38, 255, 0, 0.4);

border-color: #26ff00; }

.c:nth-child(64) {

-webkit-animation-delay: -1.28s;

animation-delay: -1.28s;

background: rgba(51, 255, 0, 0.4);

border-color: #3f0; }

.c:nth-child(65) {

-webkit-animation-delay: -1.3s;

animation-delay: -1.3s;

background: rgba(64, 255, 0, 0.4);

border-color: #40ff00; }

.c:nth-child(66) {

-webkit-animation-delay: -1.32s;

animation-delay: -1.32s;

background: rgba(76, 255, 0, 0.4);

border-color: #4cff00; }

.c:nth-child(67) {

-webkit-animation-delay: -1.34s;

animation-delay: -1.34s;

background: rgba(89, 255, 0, 0.4);

border-color: #59ff00; }

.c:nth-child(68) {

-webkit-animation-delay: -1.36s;

animation-delay: -1.36s;

background: rgba(102, 255, 0, 0.4);

border-color: #6f0; }

.c:nth-child(69) {

-webkit-animation-delay: -1.38s;

animation-delay: -1.38s;

background: rgba(115, 255, 0, 0.4);

border-color: #73ff00; }

.c:nth-child(70) {

-webkit-animation-delay: -1.4s;

animation-delay: -1.4s;

background: rgba(128, 255, 0, 0.4);

border-color: #80ff00; }

.c:nth-child(71) {

-webkit-animation-delay: -1.42s;

animation-delay: -1.42s;

background: rgba(140, 255, 0, 0.4);

border-color: #8cff00; }

.c:nth-child(72) {

-webkit-animation-delay: -1.44s;

animation-delay: -1.44s;

background: rgba(153, 255, 0, 0.4);

border-color: #9f0; }

.c:nth-child(73) {

-webkit-animation-delay: -1.46s;

animation-delay: -1.46s;

background: rgba(166, 255, 0, 0.4);

border-color: #a6ff00; }

.c:nth-child(74) {

-webkit-animation-delay: -1.48s;

animation-delay: -1.48s;

background: rgba(178, 255, 0, 0.4);

border-color: #b2ff00; }

.c:nth-child(75) {

-webkit-animation-delay: -1.5s;

animation-delay: -1.5s;

background: rgba(191, 255, 0, 0.4);

border-color: #bfff00; }

.c:nth-child(76) {

-webkit-animation-delay: -1.52s;

animation-delay: -1.52s;

background: rgba(204, 255, 0, 0.4);

border-color: #cf0; }

.c:nth-child(77) {

-webkit-animation-delay: -1.54s;

animation-delay: -1.54s;

background: rgba(217, 255, 0, 0.4);

border-color: #d9ff00; }

.c:nth-child(78) {

-webkit-animation-delay: -1.56s;

animation-delay: -1.56s;

background: rgba(230, 255, 0, 0.4);

border-color: #e6ff00; }

.c:nth-child(79) {

-webkit-animation-delay: -1.58s;

animation-delay: -1.58s;

background: rgba(242, 255, 0, 0.4);

border-color: #f2ff00; }

.c:nth-child(80) {

-webkit-animation-delay: -1.6s;

animation-delay: -1.6s;

background: rgba(255, 255, 0, 0.4);

border-color: yellow; }

.c:nth-child(81) {

-webkit-animation-delay: -1.62s;

animation-delay: -1.62s;

background: rgba(255, 242, 0, 0.4);

border-color: #fff200; }

.c:nth-child(82) {

-webkit-animation-delay: -1.64s;

animation-delay: -1.64s;

background: rgba(255, 229, 0, 0.4);

border-color: #ffe500; }

.c:nth-child(83) {

-webkit-animation-delay: -1.66s;

animation-delay: -1.66s;

background: rgba(255, 217, 0, 0.4);

border-color: #ffd900; }

.c:nth-child(84) {

-webkit-animation-delay: -1.68s;

animation-delay: -1.68s;

background: rgba(255, 204, 0, 0.4);

border-color: #fc0; }

.c:nth-child(85) {

-webkit-animation-delay: -1.7s;

animation-delay: -1.7s;

background: rgba(255, 191, 0, 0.4);

border-color: #ffbf00; }

.c:nth-child(86) {

-webkit-animation-delay: -1.72s;

animation-delay: -1.72s;

background: rgba(255, 179, 0, 0.4);

border-color: #ffb300; }

.c:nth-child(87) {

-webkit-animation-delay: -1.74s;

animation-delay: -1.74s;

background: rgba(255, 166, 0, 0.4);

border-color: #ffa600; }

.c:nth-child(88) {

-webkit-animation-delay: -1.76s;

animation-delay: -1.76s;

background: rgba(255, 153, 0, 0.4);

border-color: #f90; }

.c:nth-child(89) {

-webkit-animation-delay: -1.78s;

animation-delay: -1.78s;

background: rgba(255, 140, 0, 0.4);

border-color: darkorange; }

.c:nth-child(90) {

-webkit-animation-delay: -1.8s;

animation-delay: -1.8s;

background: rgba(255, 128, 0, 0.4);

border-color: #ff8000; }

.c:nth-child(91) {

-webkit-animation-delay: -1.82s;

animation-delay: -1.82s;

background: rgba(255, 115, 0, 0.4);

border-color: #ff7300; }

.c:nth-child(92) {

-webkit-animation-delay: -1.84s;

animation-delay: -1.84s;

background: rgba(255, 102, 0, 0.4);

border-color: #f60; }

.c:nth-child(93) {

-webkit-animation-delay: -1.86s;

animation-delay: -1.86s;

background: rgba(255, 89, 0, 0.4);

border-color: #ff5900; }

.c:nth-child(94) {

-webkit-animation-delay: -1.88s;

animation-delay: -1.88s;

background: rgba(255, 77, 0, 0.4);

border-color: #ff4d00; }

.c:nth-child(95) {

-webkit-animation-delay: -1.9s;

animation-delay: -1.9s;

background: rgba(255, 64, 0, 0.4);

border-color: #ff4000; }

.c:nth-child(96) {

-webkit-animation-delay: -1.92s;

animation-delay: -1.92s;

background: rgba(255, 51, 0, 0.4);

border-color: #f30; }

.c:nth-child(97) {

-webkit-animation-delay: -1.94s;

animation-delay: -1.94s;

background: rgba(255, 38, 0, 0.4);

border-color: #ff2600; }

.c:nth-child(98) {

-webkit-animation-delay: -1.96s;

animation-delay: -1.96s;

background: rgba(255, 26, 0, 0.4);

border-color: #ff1a00; }

.c:nth-child(99) {

-webkit-animation-delay: -1.98s;

animation-delay: -1.98s;

background: rgba(255, 13, 0, 0.4);

border-color: #ff0d00; }

.c:nth-child(100) {

-webkit-animation-delay: -2s;

animation-delay: -2s;

background: rgba(255, 0, 0, 0.4);

border-color: red; }

@-webkit-keyframes round {

100% {

-webkit-transform: rotate(2200deg) translate3d(600px, 0, 0) rotate(0);

transform: rotate(2200deg) translate3d(600px, 0, 0) rotate(0); } }

@keyframes round {

100% {

-webkit-transform: rotate(2200deg) translate3d(600px, 0, 0) rotate(0);

transform: rotate(2200deg) translate3d(600px, 0, 0) rotate(0); } }

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值