Border Radius Bouncer

Developer
Size
2,415 Kb
Views
18,216

How do I make an border radius bouncer?

What is a border radius bouncer? How do you make a border radius bouncer? This script and codes were developed by Zachary Olson on 10 November 2022, Thursday.

Border Radius Bouncer Previews

Border Radius Bouncer - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Border Radius Bouncer</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="bounceguy"> <div class="bounceguy-eye"> <div class="bounceguy-eye-iris"></div> </div>	<div class="bounceguy-eye"> <div class="bounceguy-eye-iris"></div> </div> <div class="bounceguy-mouth"></div>
</div> <script src="js/index.js"></script>
</body>
</html>

Border Radius Bouncer - Script Codes CSS Codes

#bounceguy {	position: relative;	width: 300px;	height: 200px;	background: radial-gradient(ellipse at center, rgba(168,196,129,1) 32%,rgba(125,193,23,1) 100%);	text-align: center;	-webkit-animation: bounce 1s infinite alternate;	-moz-animation: bounce 1s infinite alternate;	animation: bounce 1s infinite alternate;
}
@-webkit-keyframes bounce {	from {	top: 80px;	border-radius: 50% / 100% 100% 0 0;	}	to {	top: 10px;	border-radius: 50%;	}
}
@-moz-keyframes bounce {	from {	top: 80px;	border-radius: 50% / 100% 100% 0 0;	}	to {	top: 10px;	border-radius: 50%;	}
}
@keyframes bounce {	from {	top: 80px;	border-radius: 50% / 100% 100% 0 0;	}	to {	top: 10px;	border-radius: 50%;	}
}
.bounceguy-mouth:before, .bounceguy-mouth:after {	display: inline-block;	content: '';	width: 20px;	height: 15px;	background-color: #FFF;	border-radius: 0 0 20% 20%;
}
.bounceguy-mouth:before {	margin-right: 5px;
}
.bounceguy-mouth {	position: relative;	width: 70px;	height: 40px;	top: 75px;	margin: 0 auto;	background-color: #000;	background: radial-gradient(ellipse at 50% 100%, #6E1011 0%,#000 60%);	-webkit-animation: mouthchange 4s infinite alternate;	-moz-animation: mouthchange 4s infinite alternate;	animation: mouthchange 4s infinite alternate;
}
@-webkit-keyframes mouthchange {	from {	border-radius: 50% / 0 0 100% 100%;	}	50% {	border-radius: 50% / 0 0 100% 100%;	}	70% {	border-radius: 20% 20% 50% 50%;	}	100% {	border-radius: 20% 20% 50% 50%;	}
}
@-moz-keyframes mouthchange {	from {	border-radius: 50% / 0 0 100% 100%;	}	50% {	border-radius: 50% / 0 0 100% 100%;	}	70% {	border-radius: 20% 20% 50% 50%;	}	100% {	border-radius: 20% 20% 50% 50%;	}
}
@keyframes mouthchange {	from {	border-radius: 50% / 0 0 100% 100%;	}	50% {	border-radius: 50% / 0 0 100% 100%;	}	70% {	border-radius: 20% 20% 50% 50%;	}	100% {	border-radius: 20% 20% 50% 50%;	}
}
.bounceguy-eye { display: inline-block; position: relative; top: 45px; padding: 25px; background-color: #FFF; border-radius: 50%; overflow: hidden;
}
.bounceguy-eye:before { display: block; content: ''; position: absolute; width: 50px; height: 25px; top: -30px; left: 0; border-radius: 50%; border-top: 3px solid brown;
}
.bounceguy-eye:first-of-type { margin-right: 20px;
}
.bounceguy-eye-iris { position: absolute; padding: 15px; background-color: #000; border-radius: 50%; -webkit-animation: irismove 2s infinite alternate; -moz-animation: irismove 2s infinite alternate; animation: irismove 2s infinite alternate;
}
.bounceguy-eye-iris:after { display: block; content: ''; width: 10px; height: 10px; position: absolute; top: 6px; right: 8px; border-top: 3px solid #CCC; border-radius: 50%; -webkit-transform: rotate(50deg); -moz-transform: rotate(50deg); transform: rotate(50deg);
}
@-webkit-keyframes irismove {	70% { bottom: 20px; left: 7px;	}	85% { bottom: 0; left: 10px;	}	100% { bottom: 5px; left: 16px;	}
}
@-moz-keyframes irismove {	70% { bottom: 20px; left: 7px;	}	85% { bottom: 0; left: 10px;	}	100% { bottom: 5px; left: 16px;	}
}
@keyframes irismove {	70% { bottom: 20px; left: 7px;	}	85% { bottom: 0; left: 10px;	}	100% { bottom: 5px; left: 16px;	}
}
#bounceguy { margin: 0 auto; }
body { background-color: #C1FAF5 }

Border Radius Bouncer - Script Codes JS Codes

/* Loved Lea Verou's border radius presentation, and thought I'd try to re make the little character she made in it https://vimeo.com/70171266?utm_source=CSS-Weekly&utm_campaign=Issue-69&utm_medium=web
*/
Border Radius Bouncer - Script Codes
Border Radius Bouncer - Script Codes
Home Page Home
Developer Zachary Olson
Username zacharyolson
Uploaded November 10, 2022
Rating 3
Size 2,415 Kb
Views 18,216
Do you need developer help for Border Radius Bouncer?

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!

Zachary Olson (zacharyolson) Script Codes
Create amazing love letters 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!