js+div实现记忆翻盘类小游戏代码
代码语言:html
所属分类:游戏
代码描述:js+div实现记忆翻盘类小游戏代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.5.6.1.css"> <link href="https://fonts.googleapis.com/css?family=Orbitron:500,900" rel="stylesheet"> <style> * { -webkit-box-sizing: border-box; box-sizing: border-box; text-transform: capitalize; font-family: 'Ubuntu', sans-serif; outline: none; } body { background: -webkit-gradient(linear, left top, right top, from(rgba(4,191,212,0.9)), to(rgba(117,8,161,0.9))); background: -webkit-linear-gradient(left, rgba(4,191,212,0.9) 0%, rgba(117,8,161,0.9) 100%); background: -o-linear-gradient(left, rgba(4,191,212,0.9) 0%, rgba(117,8,161,0.9) 100%); background: linear-gradient(-270deg, rgba(4,191,212,0.9) 0%, rgba(117,8,161,0.9) 100%); } body::after { content: ''; opacity: 0.1; top: 0; left: 0; bottom: 0; right: 0; position: absolute; z-index: -1; } @-webkit-keyframes rotate { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(8deg); } } .carbon { background: #2a334c; border-radius: 4px; padding: 10px 30px 10px 30px; width: 65%; height: 85%; margin: 60px auto 10px auto; -webkit-transition: all 2s ease-out; -o-transition: all 2s ease-out; transition: all 2s ease-out; -webkit-box-shadow: 2px 4px 24px black; box-shadow: 2px 4px 24px black; } .tabbar { height: 50px; position: relative; color: white; padding: 1px; font-family: 'Orbitron', sans-serif; } .tabbar > div { padding-left: 10px; position: absolute; top: 14px; left: 0; color: #ff5f56; width: 100%; } .tabbar > div > span, h4 { display: inline; } h4 { font-family: 'Orbitron', sans-serif; font-weight: 400; } h4 > span { font-family: 'Orbitron', sans-serif; color: #27c93f; } .time, .counter { color: #ffbe2e; font-size: 25px; font-weight: 600; } button { font-family: 'Orbitron', sans-serif; border-radius: 3px; background-color: #ff5f56; width: 100px; height: 30px; top: -3px; right: 15px; position: absolute; font-size: 20px; color: white; -webkit-box-shadow: 2px 2px 2px #ff5f56; box-shadow: 2px 2px 2px #ff5f56; border: 1px solid rgba(0, 0, 0, 0.342); } button:active { -webkit-box-shadow: 1px 0px 1px #ff5f56; box-shadow: 1px 0px 1px #ff5f56; height: 32px; } .panel { background-color: #282a36; padding-left: 10px; border-radius: 10px; margin: 15px 0; } .panel .circle { border-radius: 50%; display: inline-block; height: 15px; width: 15px; } .panel__one { background-color: #ff5f56; } .panel__two { background-color: #ffbe2e; } .panel__three { background-color: #27c93f; position: relative; } .circle:hover { opacity: 0.7; cursor.........完整代码请登录后点击上方下载按钮下载查看
网友评论0