gsap小鸟云朵弹跳小游戏效果代码

代码语言:html

所属分类:游戏

代码描述:gsap小鸟云朵弹跳小游戏效果代码

代码标签: 弹跳 小游戏 效果

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

<html lang="en"><head>

  <meta charset="UTF-8">

<link href="https://fonts.googleapis.com/css2?family=Gamja+Flower&amp;display=swap" rel="stylesheet">
  
  
  
<style>
* {
	padding: 0;
	margin: 0;
}
body {
	background-color: skyblue;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	font-family: "Gamja Flower", cursive;
	transition: background-color 5s;
	transition-delay: 0.1s;
	will-change: background-color;
}
canvas {
	z-index: 100;
	transform: translateZ(10px);
	background-color: rgba(0, 0, 0, 0) !important;
}
.keepItUp {
	position: absolute;
	top: 40%;
	z-index: -1;
	opacity: 1;
	transition: opacity 0.5s;
	transition-delay: 0.1s;
	will-change: opacity;
	font-size: 10vw;
	text-align: center;
	width: 50%;
	margin-left: 25%;
}
.timer {
	position: absolute;
	top: 40%;
	z-index: -1;
	opacity: 1;
	transition: opacity 0.5s;
	transition-delay: 0.1s;
	will-change: opacity;
	font-size: 5vw;
	text-align: center;
	top: 5%;
	right: 5%;
}
.choose {
	position: absolute;
	bottom: 0%;
	z-index: 101;
	opacity: 1;
	transition: opacity 0.5s;
	transition-delay: 0.1s;
	will-change: opacity;
	font-size: 5vw;
	text-align: center;
	width: 50%;
	margin-left: 25%;
}
.bird1,
.bird2,
.bird3 {
	background-color: transparent;
	width: 100%;
	transition: all 0.5s;
}
.bird1:hover,
.bird3:hover {
	transform: rotateZ(360deg);
}
.bird2:hover {
	transform: rotateZ(-360deg);
}
button {
	background-color: transparent;
	border: none;
	width: 5vw;
	height: 5vw;
}
.clouds {
	width: 400%;
	height: 20%;
	position: Absolute;
	top: 0px;
	z-index: -1;
}
.clouds > div {
	position: Absolute;
	left: 10vw;
	top: 5vw;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0