月球旋转动画

代码语言:html

所属分类:动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

    <title> - Earth orbit CSS animation</title>
    <style>
        html, body {
            /* The universe takes up all available space */
            width: 100%;
            height: 100vh;
            overflow: hidden;

            /* The universe is black */
            background-color: black;
        }

        #sun {
            position: absolute;
            /* Positions the top-left corner of the image to be *
    /* in the middle of the box */
            top: 50%;
            left: 50%;

            /* Play with these numbers to see what it does */
            height: 200px;
            width: 200px;
            margin-top: -100px;
            margin-left: -100px;

            border-color: orange;
            border-width: 1px;
            border-style: solid;
            border-radius: 50%;

            box-shadow: 0 0 128px red;
            background: yellow;
        }

        #earth {
            /* Style your earth */
            positio.........完整代码请登录后点击上方下载按钮下载查看

网友评论0