Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[html] 第839天 使用HTML5+CSS3实现一个轮胎滚动的特效 #4277

Open
haizhilin2013 opened this issue Aug 1, 2021 · 1 comment
Open
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

第839天 使用HTML5+CSS3实现一个轮胎滚动的特效

3+1官网

我也要出题

@haizhilin2013 haizhilin2013 added the html html label Aug 1, 2021
@wj-111
Copy link

wj-111 commented Aug 3, 2021

写复杂了-_-|

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			.tyre{
				height: 200px;
				width: 200px;
				background-color: #ffffff;
				border-radius: 50%;
				animation: spin 3s linear infinite;
				text-align: center;
				line-height: 200px;
				display: flex;
			}
			.angle{
				margin: auto;
				height: 160px;
				width: 160px;
				border-radius: 50px;
				background-color: #282a2c;
				opacity: 0.9 ;
				
			}
			.circle{
				height: 160px;
				width: 160px;
				border-radius: 50%;
				background-color: #3e4044;
				padding: 40px;
				box-sizing:border-box;
			}
			.small_circle{
				height: 80px;
				width: 80px;
				border-radius: 50%;
				background-color: #000000;
			}
			@keyframes spin{
			    to {
			        transform: rotate(360deg);
			    }
			}
		</style>
	</head>
	<body>
		<div class="tyre">
			<div class="angle" id="">
				<div class="angle" id="" style="transform: rotate(30deg);">
					<div class="angle" id="" style="transform: rotate(30deg);">
						<div class="circle">
							<div class="small_circle">
								
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		
		
	</body>
</html>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html html
Projects
None yet
Development

No branches or pull requests

2 participants