Starwars Opening Scroll (Sound)
How do I make an starwars opening scroll (sound)?
Starwars opening scroll. Warning, this pen contains sound.Thanks to codepen.io/mathewblair for the stars.. What is a starwars opening scroll (sound)? How do you make a starwars opening scroll (sound)? This script and codes were developed by Darryl Huffman on 01 January 2023, Sunday.
Starwars Opening Scroll (Sound) - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Starwars Opening Scroll (Sound)</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Star Wars</h1>
<div class="black"></div>
<div class="cleartxt"></div>
<div id="container"> <section> <br/> <br/> <h2>Episode IV</h2> <h3>A NEW HOPE</h3> <br><br> <p>A long time ago, in a galaxy far, far away....</p> <p>It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.</p> <p>During the battle, rebel spies managed to steal secret plans to the Empire's ultimate weapon, the DEATH STAR, an armored space station with enough power to destroy an entire planet.</p> <p>Pursued by the Empire's sinister agents, Princess Leia races home aboard her starship, custodian of the stolen plans that can save her people and restore freedom to the galaxy....</p> <br><br> <p>A pen by Darryl Huffman ;)</p> </section>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Starwars Opening Scroll (Sound) - Script Codes CSS Codes
h1{ width: 100%; text-align: center; color: #F8FF00; position: absolute; top: 30%; font-size: 12vw; font-family: Helvetica, sans-serif; font-weight: bold; -webkit-animation: logo 4s linear; /* Chrome, Safari, Opera */ animation: logo 4s linear; -webkit-transform: scale(0); transform: scale(0);
}
#container{ text-align: center; width: 300px; margin:0 auto; -webkit-perspective:600; perspective: 600; transition: all .5s;
}
section{ font-smooth: always; transition: all 5s; font-size:22px; font-family: Helvetica, sans-serif; width: 100%; height: 100px; color: #F8FF00; -webkit-transform: rotateX(70deg) translate(0,-1800px); transform: rotateX(70deg) translate(0,-1800px); -webkit-animation: mymove 140s linear; /* Chrome, Safari, Opera */ animation: mymove 140s linear;
}
section p{ line-height:30px; font-size: 14px; font-smooth: always; text-align: justify;
}
@-webkit-keyframes logo { 0% { -webkit-transform: scale(1); transform: scale(1); } 50%{ -webkit-transform: scale(1); transform: scale(1); } 100% { -webkit-transform: scale(0); transform: scale(0); }
}
@keyframes logo { 0% { -webkit-transform: scale(1); transform: scale(1); } 50%{ -webkit-transform: scale(1); transform: scale(1); } 100% { -webkit-transform: scale(0); transform: scale(0); }
}
@-webkit-keyframes mymove { from { -webkit-transform: rotateX(70deg) translate(0,550px); transform: rotateX(70deg) translate(0,550px); } to { -webkit-transform: rotateX(70deg) translate(0,-1800px); transform: rotateX(70deg) translate(0,-1800px); }
}
/* Standard syntax */
@keyframes mymove { from { -webkit-transform: rotateX(70deg) translate(0,550px); transform: rotateX(70deg) translate(0,550px); } to { -webkit-transform: rotateX(70deg) translate(0,-1800px); transform: rotateX(70deg) translate(0,-1800px); }
}
/* Background */
body{ background-color: #000000; width: 100%; height: 100%; overflow: hidden;
}
canvas{ position: fixed; top: 0px; left: 0px; z-index:1000;
}
.cleartxt{ top: 80px; position: fixed; z-index:999; width: 100%; height: 80px; background: rgba(0,0,0,1); background: -moz-linear-gradient(top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%); background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(0,0,0,1)), color-stop(100%, rgba(0,0,0,0))); background: -webkit-linear-gradient(top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%); background: -o-linear-gradient(top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%); background: -ms-linear-gradient(top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%); background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#000000', GradientType=0 );
}
.black{ position:fixed; top: 0px; left: 0px; background-color:#000; z-index:999; height:80px; width: 100%;
}
/* End Background */
Starwars Opening Scroll (Sound) - Script Codes JS Codes
// The text 3D affect, and animation is pure CSS. Only Javascript here is to play music and create stars.
// Created by Darryl Huffman
//////////////// STAR BACKGROUND
window.onload = function(){ // Creating the Canvas var canvas = document.createElement("canvas"), c = canvas.getContext("2d"), particles = {}, particleIndex = 0, particleNum = 4; canvas.width = window.innerWidth; canvas.height = window.innerHeight; canvas.id = "motion"; document.body.appendChild(canvas); // Finished Creating Canvas // Setting color which is just one big square c.fillStyle = "black"; c.fillRect(0,0,canvas.width,canvas.height); // Finished Color function Particle(){ var random_x = Math.floor(Math.random() * (canvas.width - 1 + 1)) + 1; var random_y = Math.floor(Math.random() * (canvas.height - 1 + 1)) + 1; this.x = random_x; this.y = random_y; this.vx = 0; this.vy = 0; this.gravity = 0; particleIndex++; particles[particleIndex] = this; this.id = particleIndex; this.life = 0; this.size = Math.random() * 6 - 2; this.maxlife = Math.random() * 80 + 20; // Stars are set to have a random life length right now, but you can shorten this or make it longer this.color = "#FFF"; // Change color being displayed here } Particle.prototype.draw = function(){ this.x += this.vx; this.y += this.vy; this.vy += this.gravity; this.life++; if(this.life >= this.maxlife){ delete particles[this.id]; } c.fillStyle = this.color; c.fillRect(this.x, this.y, this.size, this.size); }; setInterval(function(){ c.fillStyle = "black"; c.clearRect(0,0,canvas.width,canvas.height); for (var i = 0; i < particleNum; i++){ new Particle(); } for(var i in particles){ particles[i].draw(); } }, 30); };
//////////////// END STAR BACKGROUND
//////////////// PLAY MUSIC
var mp3snd = "http://www.televisiontunes.com/themesongs/Star%20Wars.mp3";
var bkcolor = "000000";
if ( navigator.userAgent.toLowerCase().indexOf( "msie" ) != -1 ) {
document.write('<bgsound src="'+mp3snd+'" loop="1">');
}
else if ( navigator.userAgent.toLowerCase().indexOf( "firefox" ) != -1 ) {
document.write('<object data="'+mp3snd+'" type="application/x-mplayer2" width="0" height="0">');
document.write('<param name="filename" value="'+mp3snd+'">');
document.write('<param name="autostart" value="1">');
document.write('</object>');
}
else {
document.write('<audio src="'+mp3snd+'" autoplay="autoplay">');
document.write('<object data="'+mp3snd+'" type="application/x-mplayer2" width="0" height="0">');
document.write('<param name="filename" value="'+mp3snd+'">');
document.write('<param name="autostart" value="1">');
document.write('<embed height="2" width="2" src="'+mp3snd+'" pluginspage="https://www.apple.com/quicktime/download/" type="video/quicktime" controller="false" controls="false" autoplay="true" autostart="true" loop="false" bgcolor="#'+bkcolor+'"><br>');
document.write('</embed></object>');
document.write('</audio>');
}
//////////////// END PLAY MUSIC
Developer | Darryl Huffman |
Username | darrylhuffman |
Uploaded | January 01, 2023 |
Rating | 4.5 |
Size | 4,020 Kb |
Views | 6,072 |
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 |
End of the Rainbow | 3,722 Kb |
BLACKHOLE - A Canvas Experiment | 3,676 Kb |
Pixelot | 3,080 Kb |
Simple SVG Charts | 6,694 Kb |
Red Oak | 4,332 Kb |
LightBulb | 2,561 Kb |
Spilled Galaxy | 2,163 Kb |
Math | 2,495 Kb |
Spilled Paint v2 | 4,275 Kb |
Spilled Paint | 3,894 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 |
CSS Grid Overlay | Cliffpyles | 3,090 Kb |
CSS3 Diamond | Rendro | 1,960 Kb |
Sketchy Box | Mnicpt | 3,033 Kb |
ASCII triangle image overlay | Mitchdot | 2,200 Kb |
Web Spiral - p5.js | TWAIN | 2,183 Kb |
Toggle Time | Petebot | 5,345 Kb |
Sass Get Function | Lukewatts | 2,155 Kb |
A Pen by Ash | Littleginger | 2,386 Kb |
Awesome | Samarthpd | 2,901 Kb |
A Pen by Gregory Potdevin | GregoryPotdevin | 1,713 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!