Play of the Game
How do I make an play of the game?
What is a play of the game? How do you make a play of the game? This script and codes were developed by Keyon on 10 January 2023, Tuesday.
Play of the Game - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Play of the Game</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <p class="potg potganim">Play of the game</p>
<input class="nameanim" id="name" value="keyon">
<p class="ashero asheroanim">As<span class="space">_</span><input id="hero" value="mercy"></p>
<input id="bg" value="https://i.imgur.com/jMM6VUa.jpg">
<div id="screen" class=""></div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>
<script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/531144/html2canvas.js'></script>
<script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/531144/html2canvas.svg.js'></script> <script src="js/index.js"></script>
</body>
</html>
Play of the Game - Script Codes CSS Codes
@font-face { font-family: "ow-font"; src: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/531144/bignoodletoo.ttf);
}
html { background-image: url(https://i.imgur.com/jMM6VUa.jpg); background-size: cover; width: 100vw; height: 100vh; background-position: center;
}
body { margin: 0px;
}
.potg { font-family: ow-font; position: fixed; font-size: 72px; top: calc(15vh + 50px); left: 11vw; color:#fff; text-shadow: 0 1px 3px rgba(0,0,0,0.12), 0px 0px 9px rgba(255,255,255,1);
}
.potganim { animation: potg 1s ease;
}
#name { font-family: ow-font; position: fixed; font-size: 153px; top: calc(15vh + 185px); left: calc(11vw + 40px); color:#ffe931; margin: 0px; padding: 0px; border: 0px; background: transparent; outline: none; text-shadow: 0 1px 3px rgba(255,138,101,0.12), 0px 0px 9px rgba(255,138,101,1); z-index: 998;
}
.nameanim { animation: name 1.5s ease;
}
.ashero { font-family: ow-font; position: fixed; font-size: 50px; top: calc(15vh + 250px); left: calc(11vw + 80px); color:#fff; text-shadow: 0 1px 3px rgba(0,0,0,0.12), 0px 0px 9px rgba(255,255,255,1);
}
.asheroanim { animation: ashero 2s ease;
}
#hero { font-family: ow-font; font-size: 50px; left: 350px; color:#fff; margin: 0px; padding: 0px; background: transparent; border: 0px; outline: none; text-shadow: 0 1px 3px rgba(0,0,0,0.12), 0px 0px 9px rgba(255,255,255,1);
}
.space { font-size: 90px; color: transparent; opacity: 0;
}
#bg { font-family: ow-font; font-size: 20px; background: transparent; border: 0px; outline: none; color: #fff; width: 500px; opacity: 0.1; transition: all 0.3s ease;
}
#bg:hover { opacity: 0.5;
}
#bg:focus { opacity: 0.7;
}
#screen{ top: 20px; left: 20px; position: absolute; z-index: -999; background: #fff; border-radius: 3px; opacity: 0;
}
.vs { width: calc(100vw - 40px); height: calc(100vh - 40px); opacity: 1 !important; z-index: 999;
}
@-webkit-keyframes potg { 0% {margin-left: -35px; opacity: 0;} 100% {margin-left: 0px; opacity: 1;}
}
@-webkit-keyframes name { 0% {margin-left: -35px; opacity: 0;} 15% {margin-left: -35px; opacity: 0;} 100% {margin-left: 0px; opacity: 1;}
}
@-webkit-keyframes ashero { 0% {margin-left: -35px; opacity: 0;} 25% {margin-left: -35px; opacity: 0;} 100% {margin-left: 0px; opacity: 1;}
}
@-moz-keyframes potg { 0% {margin-left: -35px; opacity: 0;} 100% {margin-left: 0px; opacity: 1;}
}
@-moz-keyframes name { 0% {margin-left: -35px; opacity: 0;} 15% {margin-left: -35px; opacity: 0;} 100% {margin-left: 0px; opacity: 1;}
}
@-moz-keyframes ashero { 0% {margin-left: -35px; opacity: 0;} 25% {margin-left: -35px; opacity: 0;} 100% {margin-left: 0px; opacity: 1;}
}
@-ms-keyframes potg { 0% {margin-left: -35px; opacity: 0;} 100% {margin-left: 0px; opacity: 1;}
}
@-ms-keyframes name { 0% {margin-left: -35px; opacity: 0;} 15% {margin-left: -35px; opacity: 0;} 100% {margin-left: 0px; opacity: 1;}
}
@-ms-keyframes ashero { 0% {margin-left: -35px; opacity: 0;} 25% {margin-left: -35px; opacity: 0;} 100% {margin-left: 0px; opacity: 1;}
}
Play of the Game - Script Codes JS Codes
/* Background */
$("#bg") .keyup(function() { var value = $(this).val(); $("html").css('background-image', 'url('+value+')'); }) .keyup();
$("#bg").on('keyup', function(e) { var ccType = $(this).val(); if (ccType == "") { $("html").css('background-image', 'url(https://i.imgur.com/jMM6VUa.jpg)'); }
})
/*
$('.potg').click(function(){ html2canvas(document.body, { allowTaint: true, taintTest: false, onrendered: function(canvas) { document.getElementById('screen').appendChild(canvas); } }); $('#screen').delay(3000).queue(function() { $('#screen').addClass('vs').dequeue(); });
});*/
/*
$('.potg').click(function(){ $('.potg').removeClass('potganim'); $('#screen').delay(10).queue(function() { $('.potg').addClass('potganim'); }); $('.potg').addClass('eee').dequeue();
});*/
![Play of the Game - Script Codes](http://shots.codepen.io/Keyon/pen/pRpwRg-512.jpg)
Developer | Keyon |
Username | Keyon |
Uploaded | January 10, 2023 |
Rating | 3 |
Size | 2,781 Kb |
Views | 4,048 |
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 |
Cloud OS | 7,135 Kb |
Simple Login | 3,675 Kb |
Switch | 2,390 Kb |
Materoid | 3,342 Kb |
Gooey Eclipse | 2,073 Kb |
Heart Beat | 3,505 Kb |
Polaroid Snap Realistic | 4,845 Kb |
Marco, the angry rectangle | 2,672 Kb |
Notepad Project Neon | 5,072 Kb |
The IT Crowd Window | 3,188 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 |
Starting out with Ember.JS | Cfleschhut | 4,808 Kb |
Tooltip in table | Roine | 3,713 Kb |
CSS Hover Effects | Alen | 3,613 Kb |
SVG Transform vs CSS Transform | AmeliaBR | 4,175 Kb |
TestTube CSS | EZPK | 2,710 Kb |
CSS Bot Confusion | Jpod | 3,456 Kb |
A Pen by Stan Williams | Stanssongs | 6,706 Kb |
React Vote Component | Souporserious | 5,465 Kb |
React TODO | Enieste | 3,320 Kb |
A Pen by Bryan Rojas | Bryanrojas | 1,873 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!