js实现圆周率小数点数字围成圆圈动画效果代码

代码语言:html

所属分类:动画

代码描述:js实现圆周率小数点数字围成圆圈动画效果代码

代码标签: js 圆周率 小数点 数字 围成 圆圈 动画

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


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  

  
  <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Quicksand:wght@700&amp;display=swap'>
  
<style>
body {
	height: 100vh;
	background: rgb(255, 158, 158);
	background: -moz-radial-gradient(
		circle,
		rgba(255, 158, 158, 1) 0%,
		rgba(255, 166, 166, 1) 100%
	);
	background: -webkit-radial-gradient(
		circle,
		rgba(255, 158, 158, 1) 0%,
		rgba(255, 166, 166, 1) 100%
	);
	background: radial-gradient(
		circle,
		rgba(255, 158, 158, 1) 0%,
		rgba(255, 166, 166, 1) 100%
	);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff9e9e",endColorstr="#ffa6a6",GradientType=1);
}

#container {
	margin-top: 170px;
}

h1 {
	font-size: 400px;
	color: #0a11a5;
	margin: auto;
	text-align: center;
	border: 0px solid red;
}

#numbers {
	border: 0px solid red;
	margin-top: 200px;
	width: 30px;
	margin: 200px auto;
}

.box {
	position: absolute;
	border: 0px solid #000;
	display: inline-block;
	width: 30px;
	top: 30px;
	font-size: 30px;
	font-weight: bold;
	text-align: center;
	transform-origin: bottom;
}
</style>




</head>

<body>
  <div id="container">
	<h1>π</h1>
	<div id=&q.........完整代码请登录后点击上方下载按钮下载查看

网友评论0