CSS Spaceship
How do I make an css spaceship?
Inspired by Emir Ayouni's dribbble here: http://dribbble.com/shots/670355-Satellite?list=followingMy twitter: @monstasaurous. What is a css spaceship? How do you make a css spaceship? This script and codes were developed by Albert Filice on 26 August 2022, Friday.
CSS Spaceship - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Spaceship</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="spaceship"> <div class="flames"></div> <div class="flames-2"></div>
</div>
<h1>CSS Spaceship</h1>
<p> Inspired by <a href="http://www.growcase.com/" target="_blank">Emir Ayouni</a>'s <a href="http://dribbble.com/shots/670355-Satellite" target="_blank">Dribbble</a>. <br> Click and hold to blast off!
</p> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
CSS Spaceship - Script Codes CSS Codes
*,
*:before,
*:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
}
body { background-color: rgba(124, 183, 172, 1.0); overflow: hidden;
}
a { text-decoration: none; color: #000; font-weight: bold;
}
h1, p { width: 30%; margin-left: 5%; float: left; clear: right;
}
.spaceship { float: left; position: relative; margin-top: 30px; margin-left: 30%; top: 0px; left: 0px; width: 100px; height: 100px; background-color: rgba(248, 239, 190, 1.0); border: 5px solid rgba(129, 30, 14, 1.0); border-radius: 100px; box-shadow: 9px -9px 0px -3px rgba(205, 179, 68, 1.0) inset;
}
.spaceship:active { -webkit-animation: blast-off 5s; -moz-animation: blast-off 5s; -ms-animation: blast-off 5s; -o-animation: blast-off 5s;
}
.spaceship:before,
.spaceship:after { content: ''; position: absolute; width: 20px; height: 26px; background-color: rgba(129, 30, 14, 1.0); -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); border-top-left-radius: 20px 50px; border-top-right-radius: 20px 50px; border-bottom-left-radius: 10px 2px; border-bottom-right-radius: 10px 2px; z-index: -1;
}
.spaceship:before { top: 0px; left: 0px; box-shadow: 2px 0px rgba(129, 30, 14, 1.0) inset, 0px 4px rgba(129, 30, 14, 1.0) inset, 0px -3px rgba(129, 30, 14, 1.0) inset, 4px 0px 0px rgba(250, 106, 62, 1.0) inset, 95px 0px rgba(129, 30, 14, 1.0); z-index: -2;
}
.spaceship:after { top: 39px; left: 29px; box-shadow: 2px 0px rgba(129, 30, 14, 1.0) inset, 0px 4px rgba(129, 30, 14, 1.0) inset, 0px -2px rgba(129, 30, 14, 1.0) inset, 6px 0px rgba(250, 106, 62, 1.0) inset; z-index: 1;
}
.flames,
.flames:before { position: absolute; width: 14px; height: 100px; background-color: rgba(205, 179, 68, 1.0); border-bottom-left-radius: 7px 90px; border-bottom-right-radius: 7px 90px; box-shadow: 0px -30px 0px 5px rgba(248, 239, 190, 1.0) inset;
}
.flames { top: 8px; left: -41px; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); z-index: -2;
}
.flames:before { content: ''; top: 0px; left: 94px;
}
.flames-2 { position: absolute; top: 41px; left: -22px; height: 130px; width: 14px; border-bottom-left-radius: 40px 500px; border-bottom-right-radius: 40px 500px; background-color: rgba(205, 179, 68, 1.0); border: 5px solid rgba(248, 239, 190, 1.0); border-top: none; border-bottom: 40px solid rgba(248, 239, 190, 1.0); -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg);
}
.flames-2:before { content: ''; position: absolute; top: -13px; left: -34px; width: 7px; height: 7px; background-color: rgba(129, 30, 14, 1.0); border-radius: 7px; box-shadow: 11px 10px 0px 0px rgba(129, 30, 14, 1.0), 54px 10px rgba(129, 30, 14, 1.0), 64px 0px rgba(129, 30, 14, 1.0);
}
@-webkit-keyframes blast-off { 0%, 100% { top: 0px; left: 0px; } 1% { top: 2px; left: 2px; } 2% { top: -2px; left: 2px; } 3% { top: 4px; left: -2px; } 4% { top: 4px; left: 0px; } 5% { top: -3px; left: -2px; } 6% { top: 4px; left: 5px; } 7% { top: -4px; left: 7px; } 8% { top: 5px; left: -8px; } 9% { top: -4px; left: 6px; } 10% { top: 3px; left: -9px; } 11% { top: 9px; left: -5px; } 12% { top: 2px; left: 5px; } 99% { top: -9999px; left: 9999px; }
}
@-moz-keyframes blast-off { 0%, 100% { top: 0px; left: 0px; } 1% { top: 2px; left: 2px; } 2% { top: -2px; left: 2px; } 3% { top: 4px; left: -2px; } 4% { top: 4px; left: 0px; } 5% { top: -3px; left: -2px; } 6% { top: 4px; left: 5px; } 7% { top: -4px; left: 7px; } 8% { top: 5px; left: -8px; } 9% { top: -4px; left: 6px; } 10% { top: 3px; left: -9px; } 11% { top: 9px; left: -5px; } 12% { top: 2px; left: 5px; } 99% { top: -9999px; left: 9999px; }
}
@-ms-keyframes blast-off { 0%, 100% { top: 0px; left: 0px; } 1% { top: 2px; left: 2px; } 2% { top: -2px; left: 2px; } 3% { top: 4px; left: -2px; } 4% { top: 4px; left: 0px; } 5% { top: -3px; left: -2px; } 6% { top: 4px; left: 5px; } 7% { top: -4px; left: 7px; } 8% { top: 5px; left: -8px; } 9% { top: -4px; left: 6px; } 10% { top: 3px; left: -9px; } 11% { top: 9px; left: -5px; } 12% { top: 2px; left: 5px; } 99% { top: -9999px; left: 9999px; }
}
@-o-keyframes blast-off { 0%, 100% { top: 0px; left: 0px; } 1% { top: 2px; left: 2px; } 2% { top: -2px; left: 2px; } 3% { top: 4px; left: -2px; } 4% { top: 4px; left: 0px; } 5% { top: -3px; left: -2px; } 6% { top: 4px; left: 5px; } 7% { top: -4px; left: 7px; } 8% { top: 5px; left: -8px; } 9% { top: -4px; left: 6px; } 10% { top: 3px; left: -9px; } 11% { top: 9px; left: -5px; } 12% { top: 2px; left: 5px; } 99% { top: -9999px; left: 9999px; }
}
CSS Spaceship - Script Codes JS Codes
/*
Inspired by Emir Ayouni's dribbble here:
http://dribbble.com/shots/670355-Satellite?list=following
My twitter: @monstasaurous
His twitter: @growcase
*/
Developer | Albert Filice |
Username | monstersaurous |
Uploaded | August 26, 2022 |
Rating | 4 |
Size | 2,789 Kb |
Views | 58,696 |
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 |
Single Element Dribbble Logo | 3,236 Kb |
Single Element Google Inbox Sun | 2,303 Kb |
CSS Owl | 2,845 Kb |
CNIT 133 - Homework 4 - Part 6 | 2,218 Kb |
Single Element Wine Glass | 2,930 Kb |
Single Element Solar Eclipse Animation | 2,296 Kb |
Game of 15 | 2,692 Kb |
CSS Gameboy | 3,262 Kb |
CSS Elephant | 2,492 Kb |
Message Bubble | 2,024 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 |
Magnus 3 | ARocketfish | 7,944 Kb |
Canvas snow | Win7killer | 2,572 Kb |
Lunar eclipse | Ademilter | 2,056 Kb |
Break Out | AzazelN28 | 12,431 Kb |
3d css cube | Semenchenko | 4,578 Kb |
LDE old privacy page | Jasonangle | 2,339 Kb |
Countdown with Rings | Ewganoel | 2,490 Kb |
IE flex collapse bug fix | Rowno | 2,678 Kb |
Improved Page Flipping Effect | Usaphp | 5,201 Kb |
RAQuote | Naderk007 | 4,412 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!