CSS Spaceship

Developer
Size
2,789 Kb
Views
58,696

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 Previews

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
*/
CSS Spaceship - Script Codes
CSS Spaceship - Script Codes
Home Page Home
Developer Albert Filice
Username monstersaurous
Uploaded August 26, 2022
Rating 4
Size 2,789 Kb
Views 58,696
Do you need developer help for CSS Spaceship?

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!

Albert Filice (monstersaurous) Script Codes
Create amazing Facebook ads 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!