Franklin The CSS Fish
How do I make an franklin the css fish?
CSS fish drawing and swimming animation. Check out my tutorial on the process here: http://html5hub.com/css-animations-with-franklin/#i.1388cc9tgids81. What is a franklin the css fish? How do you make a franklin the css fish? This script and codes were developed by Joni Trythall on 02 October 2022, Sunday.
Franklin The CSS Fish - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Franklin The CSS Fish</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="fish"> <div class="fish-body"> <div class="eye"> <div class="pupil"></div> </div> </div> <div class="fin"></div> <div class="fin fin-bottom"></div>
</div>
<div class="bubbles bubble-1"></div>
<div class="bubbles bubble-5"></div>
<div class="bubbles bubble-2"></div>
<div class="bubbles bubble-6"></div>
<div class="bubbles bubble-3"></div>
<div class="bubbles bubble-7"></div>
<div class="bubbles bubble-4"></div>
<div class="bubbles bubble-8"></div>
</body>
</html>
Franklin The CSS Fish - Script Codes CSS Codes
body { background-color: #42a1c6;
}
/* Franklin's Container */
.fish { width: 150px; height: 100px; -webkit-animation: swim 3s infinite; animation: swim 3s infinite;
}
/* Franklin */
.fish-body { position: relative; margin-top: 30px; margin-left: 40px; background-color: orange; border-radius: 50%; width: 150px; height: 100px;
}
.eye { position: absolute; margin-left: 100px; margin-top: 20px; z-index: 1; background-color: white; border-radius: 50%; width: 20px; height: 20px;
}
.pupil { position: absolute; z-index: 2; margin-left: 5px; margin-top: 5px; background-color: black; border-radius: 50%; height: 10px; width: 10px;
}
.fin { margin-top: -100px; background-color: orange; border-radius: 50%; -webkit-transform: rotate(40deg); transform: rotate(40deg); width: 80px; height: 50px;
}
.fin-bottom { margin-top: -10px; -webkit-transform: rotate(-40deg); transform: rotate(-40deg);
}
/* Bubbles */
.bubbles { position: absolute; bottom: 0; z-index: 5; margin-right: 50px; background-color: white; border-radius: 50%; opacity: .50; width: 40px; height: 40px; -webkit-animation: up 4s infinite; animation: up 4s infinite;
}
.bubble-2 { left: 350px; -webkit-animation: up 2s infinite; animation: up 2s infinite;
}
.bubble-3 { left: 750px; opacity: .30; -webkit-animation: up 5s infinite; animation: up 5s infinite;
}
.bubble-4 { left: 1150px; -webkit-animation: up 6s infinite; animation: up 6s infinite;
}
.bubble-5 { left: 50px; -webkit-animation: up 5s infinite; animation: up 5s infinite;
}
.bubble-6 { left: 300px; opacity: .30; -webkit-animation: up 3s infinite; animation: up 3s infinite;
}
.bubble-7 { left: 670px; -webkit-animation: up 4s infinite; animation: up 4s infinite;
}
.bubble-8 { left: 1050px; opacity: .30; -webkit-animation: up 3s infinite; animation: up 3s infinite;
}
/* Swim Animation */
@-webkit-keyframes swim { 0% { -webkit-transform: translateY(-50px) translateX(0) rotate(30deg); transform: translateY(-50px) translateX(0) rotate(30deg); } 25% { -webkit-transform: translateY(50px) translateX(250px) rotate(20deg); transform: translateY(50px) translateX(250px) rotate(20deg); } 50% { -webkit-transform: translateY(100px) translateX(500px); transform: translateY(100px) translateX(500px); } 75% { -webkit-transform: translateY(50px) translateX(850px) rotate(-20deg); transform: translateY(50px) translateX(850px) rotate(-20deg); } 100% { -webkit-transform: translateY(-170px) translateX(1200px) rotate(-40deg); transform: translateY(-170px) translateX(1200px) rotate(-40deg); }
}
@keyframes swim { 0% { -webkit-transform: translateY(-50px) translateX(0) rotate(30deg); transform: translateY(-50px) translateX(0) rotate(30deg); } 25% { -webkit-transform: translateY(50px) translateX(250px) rotate(20deg); transform: translateY(50px) translateX(250px) rotate(20deg); } 50% { -webkit-transform: translateY(100px) translateX(500px); transform: translateY(100px) translateX(500px); } 75% { -webkit-transform: translateY(50px) translateX(850px) rotate(-20deg); transform: translateY(50px) translateX(850px) rotate(-20deg); } 100% { -webkit-transform: translateY(-170px) translateX(1200px) rotate(-40deg); transform: translateY(-170px) translateX(1200px) rotate(-40deg); }
}
/* Bubbles Animation */
@-webkit-keyframes up { 100% { -webkit-transform: translateY(-800px); transform: translateY(-800px); }
}
@keyframes up { 100% { -webkit-transform: translateY(-800px); transform: translateY(-800px); }
}
Developer | Joni Trythall |
Username | jonitrythall |
Uploaded | October 02, 2022 |
Rating | 4.5 |
Size | 2,163 Kb |
Views | 22,264 |
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 |
Floated Image Link Issue | 2,847 Kb |
Spring Into CSS Grid | 2,630 Kb |
Frosted Glass Quote | 2,591 Kb |
Shifty the CSS Crab | 3,034 Kb |
Flexbox Tinkering | 1,796 Kb |
SVG Loaders | 3,649 Kb |
Blurred Gear Loader | 3,783 Kb |
CSS Pencil Scoop Logo | 2,304 Kb |
Solar Eclipse Loader | 3,012 Kb |
Bounce Delay Loader | 2,894 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 |
This in constructor context | _shree33 | 1,718 Kb |
Click Based Rotation Demo | Zeaklous | 2,086 Kb |
CSS Google Now | Jackmoran | 3,196 Kb |
Using Flickr API | MoyArt | 6,761 Kb |
Basecamp 3 Document | Lachlanjc | 3,811 Kb |
Scifi-style Radio-based Tab | Aaronchuo | 4,427 Kb |
Parallax with only CSS | Thulioph | 2,297 Kb |
CSS Hover Effects | Alen | 3,613 Kb |
CSS3 Form Page Design | Rssatnam | 3,613 Kb |
A cube | KyleDavidE | 18,627 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!