CSS Shoe Prints Animation Effects

CSS Shoe Prints Animation Effects



All Source Code : https://www.patreon.com/onlinetutorials Get now more than 1000+ source code just by clicking on this link …

source

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>CSS Animation Effects</title>
	<link rel="stylesheet" href="style.css">
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
	<div class="container"></div>
	<script>
		let container = document.querySelector('.container');
		let totalCircle = 16;
		let angleStep = 360 / totalCircle;
		for (let i = 0; i < totalCircle; i++){
			let circle = document.createElement('div');
			circle.classList.add('circle');
			let rotation = i * angleStep;
			circle.style.transform = `rotate(${rotation}deg) translate(150px)`;
			container.appendChild(circle);
		}
	</script>
</body>
</html>
*
{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body 
{
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background: #222;
}
.container 
{
	position: absolute;
	width: 400px;
	height: 400px;
	display: flex;
	justify-content: center;
	align-items: center;
	animation: animate 10s steps(16) infinite;
}
@keyframes animate 
{
	0% 
	{
		transform: rotate(0deg);
	}
	100% 
	{
		transform: rotate(360deg);
	}
}
.container .circle 
{
	position: absolute;
	top: 50%;
	left: 50%;
	background: #fff;
}
.container .circle::before 
{
	content: '\f54b';
	position: absolute;
	font-family: fontAwesome;
	font-size: 3em;
	color: #444;
	rotate: 90deg;
}
.container .circle:nth-child(1):before 
{
	color: #fff;
	text-shadow: 0 0 15px #fff,
	0 0 35px #fff,
	0 0 100px #fff;
}

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *