Think Fast - A Fun Reaction Time Challenge Game
About this app
Test your reflexes and see how fast you can react with this colorful, fun, and engaging reaction time challenge game, Think Fast.
Think Fast - A Fun Reaction Time Challenge Game Think Fast! Score: 0 Click the button to start! Start Game
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>Think Fast - A Fun Reaction Time Challenge Game</title>
<meta name="description" content="Test your reflexes and see how fast you can react with this colorful, fun, and engaging reaction time challenge game, Think Fast.">
<meta name="keywords" content="reaction time, game, fun, challenge, reflex, speedy, quick, competitive">
<!-- Libraries -->
<!-- jQuery (3.6.0) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<!-- Bootstrap CSS (5.3.3) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<!-- Bootstrap JS (5.3.3) -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<!-- Font Awesome (6.6.0) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/fontawesome.min.css" crossorigin="anonymous">
<script type="text/javascript">
try {
document.addEventListener("DOMContentLoaded", function() {
const startButton = document.getElementById('start-button');
const display = document.getElementById('display');
const scoreDisplay = document.getElementById('score');
let score = 0;
let gameActive = false;
let timeout;
startButton.onclick = function() {
startGame();
};
function startGame() {
score = 0;
updateScore();
gameActive = true;
display.innerHTML = 'Wait for it...';
timeout = setTimeout(() => {
if (gameActive) {
display.innerHTML = 'Click!';
display.classList.add('pulse');
document.addEventListener('click', handleClick);
}
}, Math.random() * 3000 + 2000);
}
function handleClick() {
if (gameActive) {
score++;
updateScore();
gameActive = false;
clearTimeout(timeout);
display.classList.remove('pulse');
display.innerHTML = 'Nice job! Click to play again.';
document.removeEventListener('click', handleClick);
}
}
function updateScore() {
scoreDisplay.innerHTML = `Score: ${score}`;
}
});
} catch (error) {
throw error;
}
</script>
<style>
body {
background: linear-gradient(to right, #ff6e7f, #feaf8a);
color: #fff;
font-family: 'Arial', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
flex-direction: column;
}
#display {
font-size: 2rem;
margin: 20px;
padding: 20px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
}
.pulse {
animation: pulse-animation 0.6s infinite;
}
@keyframes pulse-animation {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
button {
background: #28a745;
border: none;
padding: 15px 30px;
border-radius: 50px;
font-size: 1.2rem;
cursor: pointer;
transition: background 0.3s;
}
button:hover {
background: #218838;
}
#score {
font-size: 1.5rem;
}
</style>
</head>
<body>
<div id="main-container" class="container text-center">
<h1>Think Fast!</h1>
<div id="score">Score: 0</div>
<div id="display">Click the button to start!</div>
<button id="start-button">Start Game</button>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!