CSS Pokeball
How do I make an css pokeball?
Flat Pokeball made with CSS. Still details to be fixed.. What is a css pokeball? How do you make a css pokeball? This script and codes were developed by Diego Ponce on 21 November 2022, Monday.
CSS Pokeball - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Pokeball</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @font-face { font-family: 'Spinnaker'; font-style: normal; font-weight: 400; src: local('Spinnaker'), local('Spinnaker-Regular'), url(http://themes.googleusercontent.com/static/fonts/spinnaker/v5/WxzDAY6mC9v3znSJEtCoWz8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
}
body{ background-color:#3f913e; overflow-y: hidden; overflow-x: hidden;
}
p{ text-align:center; margin-top:-30px; font-size:48px; font-family: 'Spinnaker'; font-weight:bold; letter-spacing:4px; color:#F7F7F7;
}
.pokeball{ margin:50px auto; animation: spin 1.8s infinite linear;
}
div { margin: 0 auto; padding: 0;
}
.top{ background-color:#EB2224; height:110px; width:230px; border-radius:195px 195px 0 0; border-bottom:6px solid #000000;
}
/*.middle{ background-color:#000000; width:230px; height:1px; border:4px solid #000000;
}*/
.middle_circle{ background-color:#FFFFFF; width:75px; height:75px; border-radius:50%; margin: 70px 65px; position:absolute; border:12px solid #000000;
}
.white_in{ background-color:#FFFFFF; width:50px; height:50px; border-radius:50%; padding:4px 4px; margin:5px 6px; border:3px solid #000000; -webkit-animation:myfirst 5s; /* Chrome, Safari, Opera */ animation:myfirst 4s infinite linear;
}
.bottom{ background-color:#FFFFFF; height:110px; width:230px; border-radius:0 0 195px 195px; border-top:6px solid #000000;
}
/* Animations */
@keyframes spin { 0% {transform: rotate(0deg);} 50%{transform: rotate(40deg);} 100%{transform: rotate(0deg);}
}
/* Chrome, Safari, Opera */
@-webkit-keyframes myfirst
{
0% {background: white;}
25% {background: #db9090;}
50% {background: white;}
75% {background: #db9090;}
}
/* Standard syntax */
@keyframes myfirst
{
0% {background: white;}
25% {background: #db9090;}
50% {background: white;}
75% {background: #db9090;}
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="pokeball"> <div class="top"> <div class="middle_circle"> <div class="white_in"></div> </div> </div> <div class="bottom"></div>
</div>
<p>CSS Pokéball</p>
</body>
</html>
CSS Pokeball - Script Codes CSS Codes
@font-face { font-family: 'Spinnaker'; font-style: normal; font-weight: 400; src: local('Spinnaker'), local('Spinnaker-Regular'), url(http://themes.googleusercontent.com/static/fonts/spinnaker/v5/WxzDAY6mC9v3znSJEtCoWz8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
}
body{ background-color:#3f913e; overflow-y: hidden; overflow-x: hidden;
}
p{ text-align:center; margin-top:-30px; font-size:48px; font-family: 'Spinnaker'; font-weight:bold; letter-spacing:4px; color:#F7F7F7;
}
.pokeball{ margin:50px auto; animation: spin 1.8s infinite linear;
}
div { margin: 0 auto; padding: 0;
}
.top{ background-color:#EB2224; height:110px; width:230px; border-radius:195px 195px 0 0; border-bottom:6px solid #000000;
}
/*.middle{ background-color:#000000; width:230px; height:1px; border:4px solid #000000;
}*/
.middle_circle{ background-color:#FFFFFF; width:75px; height:75px; border-radius:50%; margin: 70px 65px; position:absolute; border:12px solid #000000;
}
.white_in{ background-color:#FFFFFF; width:50px; height:50px; border-radius:50%; padding:4px 4px; margin:5px 6px; border:3px solid #000000; -webkit-animation:myfirst 5s; /* Chrome, Safari, Opera */ animation:myfirst 4s infinite linear;
}
.bottom{ background-color:#FFFFFF; height:110px; width:230px; border-radius:0 0 195px 195px; border-top:6px solid #000000;
}
/* Animations */
@keyframes spin { 0% {transform: rotate(0deg);} 50%{transform: rotate(40deg);} 100%{transform: rotate(0deg);}
}
/* Chrome, Safari, Opera */
@-webkit-keyframes myfirst
{
0% {background: white;}
25% {background: #db9090;}
50% {background: white;}
75% {background: #db9090;}
}
/* Standard syntax */
@keyframes myfirst
{
0% {background: white;}
25% {background: #db9090;}
50% {background: white;}
75% {background: #db9090;}
}
Developer | Diego Ponce |
Username | wifi |
Uploaded | November 21, 2022 |
Rating | 3 |
Size | 2,972 Kb |
Views | 18,216 |
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 |
Minimalist Mike Wazowski | 2,401 Kb |
Grid animation | 2,663 Kb |
Morphing animation | 2,134 Kb |
Microsoft Logo | 1,768 Kb |
Slide from top | 2,242 Kb |
Animated text fill | 1,910 Kb |
Text Fill | 1,674 Kb |
Minimalist Minion | 2,521 Kb |
CSS3 Animated Pacman | 2,935 Kb |
Basic AngularJS app | 2,069 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 |
Scrolling Horizontal Isotope | Bramus | 2,017 Kb |
Elon Musk - Tribute Page - FreeCodeCamp | Yunnimun | 8,615 Kb |
Vue.js Starter | Andymerskin | 1,268 Kb |
How to add Css Fold Notes In Blogger By Askwithloud.com | Askwithloud | 2,280 Kb |
Simple checkbox style | Vncnz | 2,628 Kb |
CSS3 keyframe onload animation. | Samueljseay | 1,706 Kb |
Starting out with Ember.JS | Cfleschhut | 4,808 Kb |
CSS Hover Effects | Alen | 3,613 Kb |
Box-sizing | Elad2412 | 1,572 Kb |
Css color for svg | Ademilter | 2,392 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!