Pacman loading animation
How do I make an pacman loading animation?
A pacman loading animation. To modify the animation, change either @primaryClr or @ballSize for a different color and a different size.. What is a pacman loading animation? How do you make a pacman loading animation? This script and codes were developed by Tim Guo on 03 September 2022, Saturday.
Pacman loading animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pacman loading animation</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="pacman"> <div></div> <div></div> <div></div> <div></div> <div></div>
</div>
</body>
</html>
Pacman loading animation - Script Codes CSS Codes
/* To modify the animation, change either @primaryClr or @ballSize for a different color and a different size. */
/* LESS Vars */
/*The Pacman*/
.pacman { position: relative;
}
.pacman > div:nth-child(1),
.pacman > div:nth-child(2) { width: 0; height: 0; border: 37.5px solid #fed75a; border-right-color: transparent; border-radius: 50%; left: -60px; -webkit-animation: rotate_pacman_half_up .5s infinite; animation: rotate_pacman_half_up .5s infinite; position: relative;
}
.pacman > div:nth-child(2) { -webkit-animation-name: rotate_pacman_half_down; animation-name: rotate_pacman_half_down; margin-top: -75px;
}
.pacman > div:nth-child(3),
.pacman > div:nth-child(4),
.pacman > div:nth-child(5) { background-color: #fed75a; border-radius: 50%; width: 15px; height: 15px; position: absolute; top: 30px; left: 75px;
}
.pacman > div:nth-child(3) { -webkit-animation: pacman-balls 1s -0.66s infinite linear; animation: pacman-balls 1s -0.66s infinite linear;
}
.pacman > div:nth-child(4) { -webkit-animation: pacman-balls 1s -0.33s infinite linear; animation: pacman-balls 1s -0.33s infinite linear;
}
.pacman > div:nth-child(5) { -webkit-animation: pacman-balls 1s infinite linear; animation: pacman-balls 1s infinite linear;
}
/*Pacman Animation Keyframes*/
@-webkit-keyframes rotate_pacman_half_up { 0% { -webkit-transform: rotate(270deg); transform: rotate(270deg); } 50% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } 100% { -webkit-transform: rotate(270deg); transform: rotate(270deg); }
}
@keyframes rotate_pacman_half_up { 0% { -webkit-transform: rotate(270deg); transform: rotate(270deg); } 50% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } 100% { -webkit-transform: rotate(270deg); transform: rotate(270deg); }
}
@-webkit-keyframes rotate_pacman_half_down { 0% { -webkit-transform: rotate(90deg); transform: rotate(90deg); } 50% { -webkit-transform: rotate(0); transform: rotate(0); } 100% { -webkit-transform: rotate(90deg); transform: rotate(90deg); }
}
@keyframes rotate_pacman_half_down { 0% { -webkit-transform: rotate(90deg); transform: rotate(90deg); } 50% { -webkit-transform: rotate(0); transform: rotate(0); } 100% { -webkit-transform: rotate(90deg); transform: rotate(90deg); }
}
@-webkit-keyframes pacman-balls { 75% { opacity: .7; } 100% { -webkit-transform: translateX(-75px); transform: translateX(-75px); }
}
@keyframes pacman-balls { 75% { opacity: .7; } 100% { -webkit-transform: translateX(-75px); transform: translateX(-75px); }
}
/*Scaffolding*/
body,
html { height: 100%;
}
body { background-color: rgba(0, 0, 0, 0.87); display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center;
}
Developer | Tim Guo |
Username | timothyguo |
Uploaded | September 03, 2022 |
Rating | 3 |
Size | 3,052 Kb |
Views | 50,600 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Responsive holy grail layout with Flexbox | 2,168 Kb |
Angular Template | 2,768 Kb |
Responsive Merge Identities Flyout | 7,576 Kb |
Three Pane App Layout | 2,923 Kb |
CSS Quantity Queries Demo | 3,673 Kb |
Pumpkin Animation on one Div | 101,124 Kb |
Sticky Footer with Flexbox | 1,986 Kb |
A Pen by Tim Guo | 4,415 Kb |
Registration | 6,361 Kb |
Checkbox Table with Tree Structure | 4,354 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Base-Style | Daniel_gooss | 2,614 Kb |
Fun form with currentColor | Bnthor | 2,713 Kb |
Wip elementary os navbar | Nickcolley | 2,993 Kb |
Tumblr API | Juanv911 | 2,436 Kb |
C.Rowe Button | Brownerd | 2,473 Kb |
BSP Dungeon Generation | Xgundam05 | 5,326 Kb |
Foundation 5 Menu - Accessibility | Xporter | 1,999 Kb |
Flat UI Button | Honchoman | 2,289 Kb |
Ball Physics | Getsetbro | 3,149 Kb |
Funny menu | AxeLVaisper | 4,671 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!