Mars

Developer
Size
3,817 Kb
Views
10,120

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 Previews

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)
})
Mars - Script Codes
Mars - Script Codes
Home Page Home
Developer Eli Fitch
Username elifitch
Uploaded October 28, 2022
Rating 4.5
Size 3,817 Kb
Views 10,120
Do you need developer help for Mars?

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!

Eli Fitch (elifitch) Script Codes
Create amazing video scripts 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!