Mars
How do I make an mars?
A fancy intro animation prototype for a mars themed project. What is a mars? How do you make a mars? This script and codes were developed by Eli Fitch on 28 October 2022, Friday.
Mars - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Mars</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @font-face { font-family: 'agency'; src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/62921/agency_fb-2.eot"); /* IE9 Compat Modes */ src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/62921/agency_fb-2.eot?#iefix") format("embedded-opentype"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/62921/agency_fb-2.woff") format("woff"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/62921/agency_fb-2.ttf") format("truetype"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/62921/agency_fb-2.svg#7adfd2e465e5a5494cfebbc2416928d9") format("svg"); /* Legacy iOS */ font-style: normal; font-weight: 400;
}
html { font-size: 20px;
}
body { height: 100vh; overflow: hidden; background-color: #000;
}
.alpha { position: absolute; top: 50%; left: 50%; font-family: 'agency'; text-transform: uppercase; color: #fff; font-weight: 100; font-size: 5em; transform-origin: center center; transform: translate3d(-50%, -50%, 0) scale(1.4); opacity: 0; transition: opacity 4s ease-out, transform 4s ease-out, letter-spacing 4s ease-out, -webkit-filter 3s ease-out, filter 3s ease-out; filter: blur(20px); -webkit-filter: blur(20px); white-space: nowrap;
}
.alpha.in { transform: translate3d(-50%, -50%, 0) scale(1); letter-spacing: 0.1em; opacity: 1; filter: blur(0px); -webkit-filter: blur(0px);
}
.mars { width: 75%; display: block; position: absolute; z-index: -1; top: 50%; left: 50%; transform: translate(-50%, 0); animation: mars 360s infinite linear;
}
@keyframes mars { 0% { transform: translate(-50%, 0) rotate(0deg); } 100% { transform: translate(-50%, 0) rotate(360deg); }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <h1 class="alpha "> Explore Mars </h1>
<img class="mars" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/62921/mars2-black.jpg" alt="" /> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Mars - Script Codes CSS Codes
@font-face { font-family: 'agency'; src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/62921/agency_fb-2.eot"); /* IE9 Compat Modes */ src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/62921/agency_fb-2.eot?#iefix") format("embedded-opentype"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/62921/agency_fb-2.woff") format("woff"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/62921/agency_fb-2.ttf") format("truetype"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/62921/agency_fb-2.svg#7adfd2e465e5a5494cfebbc2416928d9") format("svg"); /* Legacy iOS */ font-style: normal; font-weight: 400;
}
html { font-size: 20px;
}
body { height: 100vh; overflow: hidden; background-color: #000;
}
.alpha { position: absolute; top: 50%; left: 50%; font-family: 'agency'; text-transform: uppercase; color: #fff; font-weight: 100; font-size: 5em; transform-origin: center center; transform: translate3d(-50%, -50%, 0) scale(1.4); opacity: 0; transition: opacity 4s ease-out, transform 4s ease-out, letter-spacing 4s ease-out, -webkit-filter 3s ease-out, filter 3s ease-out; filter: blur(20px); -webkit-filter: blur(20px); white-space: nowrap;
}
.alpha.in { transform: translate3d(-50%, -50%, 0) scale(1); letter-spacing: 0.1em; opacity: 1; filter: blur(0px); -webkit-filter: blur(0px);
}
.mars { width: 75%; display: block; position: absolute; z-index: -1; top: 50%; left: 50%; transform: translate(-50%, 0); animation: mars 360s infinite linear;
}
@keyframes mars { 0% { transform: translate(-50%, 0) rotate(0deg); } 100% { transform: translate(-50%, 0) rotate(360deg); }
}
Mars - Script Codes JS Codes
$(document).ready(function() { setTimeout(function() { $('.alpha').addClass('in'); },1000)
})
Developer | Eli Fitch |
Username | elifitch |
Uploaded | October 28, 2022 |
Rating | 4.5 |
Size | 3,817 Kb |
Views | 10,120 |
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 |
Vanilla JS sticky header | 1,944 Kb |
Node DC Animated SVG Logo | 4,055 Kb |
Animated SVG Hexagon | 3,470 Kb |
Canvas Hero Prototype | 3,070 Kb |
Gradient Borders Mixin | 3,394 Kb |
Smiley guy | 3,845 Kb |
Cube of cubes | 6,112 Kb |
Neon slicey cube | 5,020 Kb |
Goodbye 2016 | 5,786 Kb |
Diagonal gradient fill button | 4,860 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 |
Hmmm... | Rk007 | 4,848 Kb |
CSS Grid Overlay | Cliffpyles | 3,090 Kb |
Horizontal Navigation with Floats | Gymratpacks | 5,403 Kb |
Social.svg.min | Larsenwork | 13,849 Kb |
AOR site logo | Thatbram | 2,527 Kb |
GLSL Hills | Ykob | 6,991 Kb |
Bubble animation | Ftabor | 6,565 Kb |
CSS Parent Selector | Tomhodgins | 2,143 Kb |
Pomodoro Clock | Osycon | 3,705 Kb |
SVG Basics | HipsterBrown | 1,852 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!