剪刀石头布游戏人机交互HTML,HTML5 剪刀石头布小游戏

CSS

语言:

CSSSCSS

确定

@import "https://fonts.googleapis.com/css?family=Roboto+Condensed";

@-webkit-keyframes beacon {

0% {

box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);

}

100% {

box-shadow: 0 0 0 2rem transparent;

}

}

@keyframes beacon {

0% {

box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);

}

100% {

box-shadow: 0 0 0 2rem transparent;

}

}

.row {

display: -webkit-box;

display: -webkit-flex;

display: -ms-flexbox;

display: flex;

-webkit-flex-flow: row;

-ms-flex-flow: row;

flex-flow: row;

}

.column {

display: -webkit-box;

display: -webkit-flex;

display: -ms-flexbox;

display: flex;

-webkit-flex-flow: column;

-ms-flex-flow: column;

flex-flow: column;

}

.align-center {

-webkit-box-align: center;

-webkit-align-items: center;

-ms-flex-align: center;

align-items: center;

}

.between {

-webkit-box-pack: justify;

-webkit-justify-content: space-between;

-ms-flex-pack: justify;

justify-content: space-between;

}

.around {

-webkit-justify-content: space-around;

-ms-flex-pack: distribute;

justify-content: space-around;

}

.chip {

width: 1em;

height: 1em;

border-radius: 100%;

display: -webkit-box;

display: -webkit-flex;

display: -ms-flexbox;

display: flex;

-webkit-flex-flow: row;

-ms-flex-flow: row;

flex-flow: row;

-webkit-box-align: center;

-webkit-align-items: center;

-ms-flex-align: center;

align-items: center;

-webkit-box-pack: center;

-webkit-justify-content: center;

-ms-flex-pack: center;

justify-content: center;

box-shadow: 0 0.2em 0.35em -0.15em rgba(35, 41, 44, 0.5);

}

.chip .fa {

font-size: 65%;

}

.beacon-1 {

-webkit-animation: beacon 1s infinite linear;

animation: beacon 1s infinite linear;

}

.beacon-2 {

-webkit-animation: beacon 1s infinite linear;

animation: beacon 1s infinite linear;

-webkit-animation-delay: .15s;

animation-delay: .15s;

}

.beacon-3 {

-webkit-animation: beacon 1s infinite linear;

animation: beacon 1s infinite linear;

-webkit-animation-delay: .3s;

animation-delay: .3s;

}

.bg-info {

background: #00BCD4;

color: #f3f4f5;

}

.bg-success {

background: #cddc39;

color: #f3f4f5;

}

.bg-alert {

background: #FF3B80;

color: #f3f4f5;

}

.bg-warning {

background: #ff5722;

color: #f3f4f5;

}

.bg-dark {

background: #23292C;

color: #f3f4f5;

}

.bg-light {

background: #f3f4f5;

color: #23292C;

}

.fg-light {

color: #f3f4f5;

}

.fg-dark {

color: #23292C;

}

.ghost {

opacity: .35;

}

.flip-container {

-webkit-perspective: 800;

perspective: 800;

}

.flip-container.flip-me .flipper {

-webkit-transform: rotateY(180deg);

transform: rotateY(180deg);

}

.flip-container,

.front,

.back,

.answers,

footer {

width: 100vw;

text-align: center;

margin: 0 auto;

}

.answers {

font-size: 8vmax;

}

footer {

font-size: 3vmax;

}

footer h1 {

margin: 0;

}

.flipper {

font-size: 35vmin;

height: 1em;

-webkit-transition: 0.8s cubic-bezier(1, -0.5, 0.2, 1.5);

transition: 0.8s cubic-bezier(1, -0.5, 0.2, 1.5);

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

transform-style: preserve-3d;

position: relative;

}

.flipper .front,

.flipper .back {

backface-visibility: hidden;

-webkit-backface-visibility: hidden;

position: absolute;

top: 0;

height: 1em;

left: 50%;

-webkit-transform: translate(-50%, 0%);

transform: translate(-50%, 0%);

-webkit-box-flex: 1;

-webkit-flex: 1;

-ms-flex: 1;

flex: 1;

display: -webkit-box;

display: -webkit-flex;

display: -ms-flexbox;

display: flex;

-webkit-box-align: center;

-webkit-align-items: center;

-ms-flex-align: center;

align-items: center;

-webkit-box-pack: center;

-webkit-justify-content: center;

-ms-flex-pack: center;

justify-content: center;

border-radius: 100%;

}

.flipper .front {

z-index: 2;

color: #838789;

-webkit-transform: translate(-50%, 0%) rotateY(0deg);

transform: translate(-50%, 0%) rotateY(0deg);

}

.flipper .back {

-webkit-transform: translate(-50%, 0%) rotateY(180deg);

transform: translate(-50%, 0%) rotateY(180deg);

width: 1em;

}

article {

-webkit-box-flex: 1;

-webkit-flex: 1;

-ms-flex: 1;

flex: 1;

background-size: cover;

background-position: center;

-webkit-justify-content: space-around;

-ms-flex-pack: distribute;

justify-content: space-around;

-webkit-box-align: center;

-webkit-align-items: center;

-ms-flex-align: center;

align-items: center;

}

main {

-webkit-box-flex: 1;

-webkit-flex: 1;

-ms-flex: 1;

flex: 1;

-webkit-transform-origin: center;

transform-origin: center;

-webkit-box-pack: center;

-webkit-justify-content: center;

-ms-flex-pack: center;

justify-content: center;

color: #f3f4f5;

background-color: #23292C;

background-image: -webkit-linear-gradient(280deg, #cddc39, #ff5722);

background-image: linear-gradient(170deg, #cddc39, #ff5722);

background-size: cover;

background-position: center;

text-align: center;

-webkit-transform-origin: center;

transform-origin: center;

-webkit-box-pack: center;

-webkit-justify-content: center;

-ms-flex-pack: center;

justify-content: center;

}

main .answered:not(.winner) {

opacity: .5;

background: none;

}

main .flipper {

margin: 0 auto;

}

main .message-wrap {

bottom: 35%;

left: 50%;

position: absolute;

-webkit-transform: translateX(-50%) scale(0);

transform: translateX(-50%) scale(0);

-webkit-transition: 0.3s cubic-bezier(0.5, 0.1, 0.3, 1.4);

transition: 0.3s cubic-bezier(0.5, 0.1, 0.3, 1.4);

-webkit-transition-delay: 0s;

transition-delay: 0s;

z-index: 1;

}

main .message-wrap.show {

bottom: 50%;

-webkit-transform: translateX(-50%) scale(1);

transform: translateX(-50%) scale(1);

-webkit-transition-delay: 0.9s;

transition-delay: 0.9s;

}

main .message-wrap .message {

padding: .5em 1em;

-webkit-box-pack: center;

-webkit-justify-content: center;

-ms-flex-pack: center;

justify-content: center;

border-radius: 3em;

box-shadow: 0 0 2em -0.3em rgba(18, 21, 22, 0.65);

line-height: 1.5;

opacity: .9;

}

main .message-wrap .text {

margin-right: 1em;

}

main .message-wrap div {

font-size: 1.5em;

}

html,

body {

height: 100%;

}

body {

margin: 0;

display: -webkit-box;

display: -webkit-flex;

display: -ms-flexbox;

display: flex;

-webkit-flex-flow: column;

-ms-flex-flow: column;

flex-flow: column;

font-family: "Roboto Condensed", Helvetica, Arial, sans-serif;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值