【AE Christmas tree code】

Insert image description here

The first website Tianfeng’s artificial intelligence website

1. Create a new notepad and paste the following code into it

1. The first type of Christmas tree code

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>AE-圣诞树</title>
    <style>
        html,body{
            margin: 0;
            width:200%;
            height: 200%;
        }
        #main{
	position: absolute; 
		top: 0; 
		left: 0; 
}
        #video1{
            width:100%;
            height:100%;
        }
        .hidden{
            display:none;
        }
    </style>
    
</head>
<body>
    <div id="main">
        <video id="video1" muted="muted" autoplay="autoplay" loop="loop" src="https://tianfeng.space/wp-content/uploads/2022/12/圣诞树1.mp4">
        </video>
    </div>
</body>
<script type="text/javascript">
    $(function(){
		var video = document.getElementById("video1");
        video.src = "";
        video.play();
    });
</script>
</html>

2. The second type of Christmas tree code

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>AE-圣诞树</title>
    <style>
        html,body{
      
      
            margin: 0;
            width:100%;
            height: 100%;
        }
        #main{
      
      
	position: absolute; 
		top: 0; 
		left: 0; 
}
        #video1{
      
      
            width:100%;
            height:100%;
        }
        .hidden{
      
      
            display:none;
        }
    </style>
    
</head>
<body>
    <div id="main">
        <video id="video1" muted="muted" autoplay="autoplay" loop="loop" src="https://tianfeng.space/wp-content/uploads/2022/12/1.mp4">
        </video>
    </div>
</body>
<script type="text/javascript">
    $(function(){
      
      
		var video = document.getElementById("video1");
        video.src = "";
        video.play();
    });
</script>
</html>

3. Modify the notepad suffix to html

img

4. Click the file to view the effect

img

Guess you like

Origin blog.csdn.net/weixin_62403633/article/details/128341347