Pinkfong Passou na KizCastle
About this app
A fun and interactive single page web app where Pinkfong passes through the KizCastle.
Pinkfong Passou na KizCastle Pinkfong Passou na KizCastle
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Pinkfong Passou na KizCastle</title>
<meta name="description" content="A fun and interactive single page web app where Pinkfong passes through the KizCastle.">
<meta name="keywords" content="Pinkfong, KizCastle, web app">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Baloo+Chettan+2&display=swap" rel="stylesheet">
<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.
// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
// Function to handle Pinkfong passing through the KizCastle
function pinkfongPass() {
// Get the Pinkfong and KizCastle elements
var pinkfong = document.getElementById('pinkfong');
var kizCastle = document.getElementById('kiz-castle');
// Add a class to animate Pinkfong passing through the castle
pinkfong.classList.add('passing');
// Wait for the animation to finish before removing the class
setTimeout(function() {
pinkfong.classList.remove('passing');
}, 3000);
}
// Call the pinkfongPass function when the Pinkfong image is clicked
document.getElementById('pinkfong').addEventListener('click', pinkfongPass);
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
background-color: #fde5ef;
font-family: 'Baloo Chettan 2', cursive;
}
.container {
padding-top: 50px;
text-align: center;
}
h1 {
color: #ff6b9a;
font-size: 30px;
margin-bottom: 20px;
}
#pinkfong {
width: 200px;
margin-bottom: 20px;
cursor: pointer;
transition: transform 0.3s ease-in-out;
}
#pinkfong:hover {
transform: scale(1.1);
}
#kiz-castle {
width: 300px;
margin: 0 auto;
position: relative;
}
.passing {
animation-name: passThrough;
animation-duration: 3s;
animation-iteration-count: 1;
animation-fill-mode: forwards;
}
@keyframes passThrough {
0% {
left: 0;
}
100% {
left: 100%;
}
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Pinkfong Passou na KizCastle</h1>
<img id="pinkfong" src="https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/apple/285/shark_1f988.png" alt="Pinkfong">
<img id="kiz-castle" src="https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/apple/285/castle_1f3f0.png" alt="KizCastle">
</div>
</body>
</html>
NEW APPS
These are apps made by the community!