js实现点名摇号抽奖效果代码
代码语言:html
所属分类:大转盘
代码描述:js实现点名摇号抽奖效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> * { padding: 0; margin: 0; } html, body { width: 100%; height: 100%; overflow: hidden; background: linear-gradient(to bottom, #171717, #494e73, #4e7290, #262f46); } #man { width: 1000px; height: 1000px; list-style: none; border-radius: 50%; background: radial-gradient(#17aacf, #1de749, #bfff0e); position: absolute; top: -150px; left: -300px; box-shadow: 0px 0px 20px indigo; } #man li { position: absolute; width: 120px; height: 30px; top: 50%; left: 50%; font-size:16px; transform-origin: left top; text-align: center; } #btnYes { position: absolute; display: block; right: 25%; top: 340px; width: 70px; height: 30px; background-color: rgb(0, 255, 213); text-align: center; border: none; outline: none; border-radius: 20px; box-shadow: 2px 2px 5px black; } #img1 { position: absolute; width: 360px; height: 40px; top: 345px; left: 220px; } #img2 { position: absolute; width: 150px; height: 150px; left: 140px; margin-top: 18%; border-radius: 50%; animation: img3move 1s infinite linear; transform-origin: center center; } @keyframes img3move { 0% { top: 50px; width: 150px; } 25% { top: 70px; width: 170px; } 50% { top: 90px; width: 190px; box-shadow: 0px 10px 10px black; } 75% { top: 70px; width: 170px; } 100% { top: 50px; width: 150px; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0