CSS Pokeball

Developer
Size
2,972 Kb
Views
18,216

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 Previews

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;}
}
CSS Pokeball - Script Codes
CSS Pokeball - Script Codes
Home Page Home
Developer Diego Ponce
Username wifi
Uploaded November 21, 2022
Rating 3
Size 2,972 Kb
Views 18,216
Do you need developer help for CSS Pokeball?

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!

Diego Ponce (wifi) Script Codes
Create amazing art & images with AI!

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!