Javascript Thug Life

Developer
Size
2,048 Kb
Views
6,072

How do I make an javascript thug life?

What is a javascript thug life? How do you make a javascript thug life? This script and codes were developed by Manz on 18 January 2023, Wednesday.

Javascript Thug Life Previews

Javascript Thug Life - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Javascript Thug Life</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="area"> <img id="glasses" src="https://rawgit.com/ManzDev/cursos-assets/gh-pages/js/glasses.png"> <img id="logo" src="https://rawgit.com/ManzDev/cursos-assets/gh-pages/js/js-logo.png"> <button onClick="thug()">Cuando haces algo en Javascript</button>
</div>
<div id="message"></div> <script src="js/index.js"></script>
</body>
</html>

Javascript Thug Life - Script Codes CSS Codes

#area { width:250px; margin:auto; text-align:center;
}
#logo { width:250px; height:250px; position:relative; top:125px;
}
button { position:relative; top:150px;
}
#glasses { width:250px; position:relative; left:-25px; -webkit-animation:glassesDown 3s linear forwards paused; animation:glassesDown 3s linear forwards paused; z-index:5;
}
#message { text-align:center; color:grey; font-size:28px; position:relative; top:175px;
}
@-webkit-keyframes glassesDown { 0% { top:-90px; } 100% { top:215px; }
}
@keyframes glassesDown { 0% { top:-90px; } 100% { top:215px; }
}

Javascript Thug Life - Script Codes JS Codes

glasses = document.getElementById('glasses')
message = document.getElementById('message')
audio = new Audio('https://raw.githack.com/ManzDev/cursos-assets/gh-pages/js/thug-life.mp3')
audio.loop = true
function thug() { if (audio.paused) { message.textContent = 'UNDEFINED' glasses.style.animationPlayState = 'running' audio.play() } else { glasses.style.animationPlayState = 'paused' audio.pause() }
}
Javascript Thug Life - Script Codes
Javascript Thug Life - Script Codes
Home Page Home
Developer Manz
Username manz
Uploaded January 18, 2023
Rating 3
Size 2,048 Kb
Views 6,072
Do you need developer help for Javascript Thug Life?

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!

Manz (manz) Script Codes
Create amazing blog posts 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!