Calculator Tools Calculator Tools
Create

A is for Alan - Interactive Alphabet Story

Apr 19, 2025

About this app

An engaging and colorful interactive alphabet story where children learn about the alphabet through creative stories and animations.

A is for Alan - Interactive Alphabet Story Interactive Alphabet Story Next

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>A is for Alan - Interactive Alphabet Story</title>
<meta name="description" content="An engaging and colorful interactive alphabet story where children learn about the alphabet through creative stories and animations.">
<meta name="keywords" content="Alphabet, Story, Children, Learning, Interactive, Animation, Fun">

<!-- Libraries -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<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 container = $('#story');
const scenes = [
{ text: "A is for Alan who drowned in a pool.", color: "#2196F3" },
{ text: "But Alan wasn’t alone, he was with friends!", color: "#FF5722" },
{ text: "They swam together, splashing and laughing.", color: "#4CAF50" },
{ text: "Alan remembered to always be safe around water.", color: "#FFC107" },
{ text: "He learned the importance of swimming lessons.", color: "#9C27B0" },
{ text: "Now Alan swims like a fish, smiling in the water!", color: "#FFEB3B" }
];
let currentScene = 0;

function changeScene(sceneIndex) {
if (sceneIndex < scenes.length) {
const scene = scenes[sceneIndex];
container.animate({ opacity: 0 }, 500, function() {
container.css("color", scene.color).text(scene.text);
container.animate({ opacity: 1 }, 500);
currentScene++;
});
}
}

$("#next-btn").click(function() {
changeScene(currentScene);
});

changeScene(currentScene);
});

} catch (error) {
throw error;
}
</script>

<style>
body {
background: linear-gradient(to right, #e91e63, #ffc107);
color: #ffffff;
font-family: 'Comic Sans MS', cursive, sans-serif;
text-align: center;
padding: 50px;
}
#story {
font-size: 2rem;
font-weight: bold;
transition: color 0.5s ease;
}
#next-btn {
margin-top: 20px;
padding: 10px 20px;
font-size: 1.2rem;
background-color: #673AB7;
border: none;
border-radius: 5px;
color: white;
cursor: pointer;
}
#next-btn:hover {
background-color: #512DA8;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Interactive Alphabet Story</h1>
<div id="story"></div>
<button id="next-btn">Next</button>
</div>
</body>
</html>