CSS - Cat on the Moon
How do I make an css - cat on the moon?
An illustration with html and CSS :D. What is a css - cat on the moon? How do you make a css - cat on the moon? This script and codes were developed by Angela Velasquez on 07 September 2022, Wednesday.
CSS - Cat on the Moon - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS - Cat on the Moon</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrapper"> <div class="cat"> <span class="eyes left"></span> <span class="eyes right"></span> <span class="mouth"></span> </div> <div class="moon"> <div class="sphere"></div> </div> <div class="cloud-container"> <div class="cloud"></div> <div class="cloud"></div> <div class="cloud"></div> <div class="cloud"></div> </div>
</div>
<div class="signature"> <p>Made with <i class="much-heart"></i> by <a href="https://codepen.io/AngelaVelasquez">Angela Velasquez</a></p>
</div>
</body>
</html>
CSS - Cat on the Moon - Script Codes CSS Codes
body { background: #222222; }
div{ display: block; position: absolute; margin: auto; top:0; bottom:0; left:0; right:0;
}
.wrapper{ height: 400px; width: 600px; margin: auto; font-family: 'Clicker Script', cursive;
}
.cloud { background: #BDA1B8; width: 90px; height: 42px; -webkit-animation: clouds 40s infinite; margin-left: 0;
}
.cloud:before { border-radius: 50%; box-shadow: 20px -20px 0 0 #BDA1B8, 90px 0 0 0 #BDA1B8, 60px -27px 0 8px #BDA1B8; content: ""; position: absolute; width: 48px; height: 48px; left: -22px; bottom: 0; background: #BDA1B8;
}
.cloud:nth-child(1){ top: auto; bottom: 120px; opacity: 0.85}
.cloud:nth-child(2){ right: auto; left: 320px; opacity: 0.5}
.cloud:nth-child(3){ bottom: auto; top: 120px; right: auto; left: 80px; opacity: 0.75;}
.cloud:nth-child(4){ bottom: auto; top: 20px; right: auto; left: 320px; opacity: 0.65;}
.moon { height: 120px; width: 120px; background: #666666; border-radius: 60px; box-shadow: 0 0 60px 1px #444444;
}
.moon:before { border-radius: 60px; box-shadow: 10px -50px 0 0 #444, 50px 0 0 0 #444, 50px -37px 0 10px #444; content: ""; position: absolute; width: 20px; height: 20px; left: 30px; bottom: 10px; background: #444;
}
.cat { background:#EEEEEE; height: 60px; top: auto; bottom: 200px; width: 60px; z-index: 0; -webkit-transition: all linear 1s;
}
.cat:before, .cat:after { width: 0; height: 0; top: -10px; position: absolute; content: "";
}
.cat:before{ border-left: 0px solid transparent; border-right: 15px solid transparent; border-bottom: 15px solid #EEE; left: 0;
}
.cat:after{ border-right: 0px solid transparent; border-left: 15px solid transparent; border-bottom: 15px solid #EEE; right: 0;
}
.cat .eyes{ position: absolute; height: 8px; width: 8px; background: #333; border-radius: 100%; top: 15px;
}
.cat .eyes.left{ left: 12px; }
.cat .eyes.right{ right: 12px; }
.cat .mouth{ position: absolute; height: 4px; width: 60%; background: #333; border-radius: 0 0 30% 30%; top: 28px; margin: auto; left: 0; right: 0;
}
.wrapper:hover .cat{ bottom: 240px;
}
@-webkit-keyframes clouds /*Safari and Chrome*/ {
0 {margin-left:0;}
25% {margin-left:100px;}
50% {margin-left:0;}
75% {margin-left:30px;}
100% {margin-left: 0;}
}
.signature { position: absolute; margin: auto; bottom: 0; top: auto;
}
.signature p{ text-align: center; font-family: Helvetica, Arial, Sans-Serif; font-size: 0.85em; color: #DDDDDD;
}
.signature .much-heart{ display: inline-block; position: relative; margin: 0 4px; height: 10px; width: 10px; background: #AC1D3F; border-radius: 4px; -ms-transform: rotate(45deg); -webkit-transform: rotate(45deg); transform: rotate(45deg);
}
.signature .much-heart::before,
.signature .much-heart::after { display: block; content: ''; position: absolute; margin: auto; height: 10px; width: 10px; border-radius: 5px; background: #AC1D3F; top: -4px;
}
.signature .much-heart::after { bottom: 0; top: auto; left: -4px;
}
.signature a { color: #FFF; text-decoration: none; font-weight: bold;
}
Developer | Angela Velasquez |
Username | AngelaVelasquez |
Uploaded | September 07, 2022 |
Rating | 4.5 |
Size | 2,564 Kb |
Views | 26,312 |
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 |
Layout Theme | 3,896 Kb |
Snake | 5,200 Kb |
CSS - Cat with balloon | 2,849 Kb |
CSS - Cat on a Plane | 2,774 Kb |
Search animation on CSS | 5,284 Kb |
CSS Shield | 1,970 Kb |
CSS radio buttons | 2,799 Kb |
CSS Switch Day and Night - Cat | 2,824 Kb |
Pure css vertical menu | 2,310 Kb |
CSS - Cat in the sky | 2,610 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 |
Acorrdian 2016 | Milanodituti | 3,720 Kb |
Loading animation with css | Icebob | 2,947 Kb |
Simple jQuery Slider | Jurbank | 2,874 Kb |
Multicolumns 2 | Raphaelgoetter | 1,857 Kb |
CSS Chat Bubbles | Boylett | 2,094 Kb |
NAV WPMANAGER | Mstoic | 1,991 Kb |
SVG Playground | Roygwells | 1,834 Kb |
Basic jQuery Filter list | Mtedwards | 2,464 Kb |
A Pen by James Podles | Jpod | 2,656 Kb |
ABVI Menu Discarded | Overdrivemachines | 3,607 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!