Code directory:

Main code implementation:

CSS styles:

/ * * * @ date 2021/1/20 16:10 * / / * * / cancel the default spacing * {margin: 0; padding: 0; } a { text-decoration: none; color: #fff; outline: none } .container { width: 100%; height: 100%; background: url('.. /img/allStart.jpg')no-repeat center center; background-size: 100% 100%; position: absolute; overflow: hidden; }Copy the code

html :

<! DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, <link rel="stylesheet" href=" CSS /style.css"> href="css/totate.css"> </head> <body> <div class="container"> <div id="content"> <div class="section3"> <div class="ui_base u_p3d"> <! <div class="ball_c"></div> <! <div class="base u_p3d"> <! <div class="line1"></div> <! <div class="ball_base u_p3D ball_1"> <div class="ball"></div> </div> <div class="ball_base u_p3d ball_2"> <div class="ball"></div> </div> <div class="ball_base u_p3d ball_3"> <div class="ball"></div> </div> <div class="ball_base u_p3d ball_4"> <div class="ball"></div> </div> <div class="ball_base u_p3d ball_5"> <div class="ball"></div> </div> </div> </div> </div> </div> <img src="img/bgbg.png" alt="" style="position:absolute; z-index: 2; width: 200%; height: 100%; opacity: .75; top: 0; left: -50%"> </div> </body> </html>Copy the code

Js files in the screenshot above can be seen to need to be imported.

Wonderful recommendation update:

HTML5 big homework actual combat 100 sets

Clocked articles updated 36/100 days

You can like, collect, pay attention to, comment on me, need to complete the document at any time contact me or exchange yo ~!