p5实现超级射线发散多边形效果
代码语言:html
所属分类:布局界面
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> html, body { margin: 0; padding: 0; height: 100%; width: 100%; background-color: black; overflow: hidden; } #background-canvas { position: absolute; height: 100%; width: 100%; } .splash { position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; z-index: 9999; background: #000000; display: block; } .box { position: absolute; width: 78px; height: 78px; left: 50%; top: 50%; margin-left: -39px; margin-top: -39px; } .loading:before { content: ""; position: absolute; width: 35px; height: 35px; top: 50%; margin-top: -18px; left: 50%; margin-left: -18px; border-width: 2px 1px; border-style: solid; border-color: rgb(255, 255, 255) rgba(247, 247, 247, 0.3); border-radius: 50%; -o-border-radius: 50%; -ms-border-radius: 50%; -webkit-border-radius: 50%; -moz-border-radius: 50%; box-sizing: border-box; -o-box-sizing: border-box; -ms-box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; animation: spin 3.45s infinite; -o-animation: spin 3.45s infinite; -ms-animation: spin 3.45s infinite; -webkit-animation: spin 3.45s infinite; -moz-animation: spin 3.45s infinite; } .loading:after { content: ""; position: absolute; width: 6px; height: 6px; top: 50%; margin-top: -3px; left: 50%; margin-left: -3px; background-color: rgb(255, 255, 255); border-radius: 50%; -o-border-radius: 50%; -ms-border-radius: 50%; -webkit-border-radius: 50%; -moz-border-radius: 50%; box-sizing: bor.........完整代码请登录后点击上方下载按钮下载查看
网友评论0