jquery实现投币猜正反游戏效果代码
代码语言:html
所属分类:游戏
代码描述:jquery实现投币猜正反游戏效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body, html { margin: 0px; padding: 0px; height: 100%; width: 100%; } .wrapper { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background-color: #333333; background-image: url('//repo.bfw.wiki/bfwrepo/image/5e4350528640e.png'); } .wrapper .coin-container { width: 150px; height: 150px; position: relative; } .wrapper .coin-container .coin-inside { width: 150px; height: 150px; position: relative; border-radius: 100%; transform-style: preserve-3d; cursor: pointer; } .wrapper .coin-container .coin-inside .coin { position: absolute; backface-visibility: hidden; } .wrapper .coin-container .coin-inside .coin.heads { transform: rotateY(0deg); } .wrapper .coin-container .coin-inside .coin.tails { transform: rotateY(180deg); } </style> </head> <body translate="no" > <div class="wrapper"> <div class="coin-container"> <div class="coin-inside"> <div class="coin heads"> <img src="//repo.bfw.wiki/bfwrepo/image/5fd7fee24ce6e.png&qu.........完整代码请登录后点击上方下载按钮下载查看
网友评论0