Pop It Eletrônico
About this app
Pop It Eletrônico - App de brinquedo virtual
Pop It Eletrônico
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>Pop It Eletrônico</title>
<meta name="description" content="Pop It Eletrônico - App de brinquedo virtual">
<meta name="keywords" content="pop it, brinquedo, virtual, diversão">
<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">
<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() {
// Adding styles
var styles = `
.shape {
width: 100px;
height: 100px;
border-radius: 50%;
margin: 20px;
display: inline-block;
cursor: pointer;
transition: transform 0.3s ease;
}
.circle {
background-color: #FF3B30;
}
.square {
background-color: #FF9500;
}
.triangle {
background-color: #4CD964;
}
.shape:hover {
transform: scale(1.2);
}
.pop {
animation: pop 0.3s ease forwards;
}
@keyframes pop {
0% {
transform: scale(1);
}
50% {
transform: scale(1.5);
}
100% {
transform: scale(1);
}
}
`;
var styleSheet = document.createElement("style");
styleSheet.type = "text/css";
styleSheet.innerText = styles;
document.head.appendChild(styleSheet);
// Adding HTML elements
var container = document.getElementById("main-container");
var circle = document.createElement("div");
circle.className = "shape circle";
container.appendChild(circle);
var square = document.createElement("div");
square.className = "shape square";
container.appendChild(square);
var triangle = document.createElement("div");
triangle.className = "shape triangle";
container.appendChild(triangle);
// Adding event listeners
circle.addEventListener("click", function() {
circle.classList.add("pop");
});
square.addEventListener("click", function() {
square.classList.add("pop");
});
triangle.addEventListener("click", function() {
triangle.classList.add("pop");
});
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
</style>
</head>
<body>
<div id="main-container" class="container">
<!-- App HTML Goes Here -->
</div>
</body>
</html>
NEW APPS
These are apps made by the community!