Calculator Tools Calculator Tools
Create

Colorful Calculator App

May 6, 2025

About this app

A colorful and responsive single page web app calculator that's fun to use with animations and visual effects.

Fun Colorful Greeting App Welcome! ✨ Click the button for a colorful greeting! ✨ Generate Greeting

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>Fun Colorful Greeting App</title>
<meta name="description" content="A fun and vibrant greeting app where users can generate colorful warm greetings with animations.">
<meta name="keywords" content="greeting, app, colorful, fun, expressive, dynamic greetings">

<style>
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

body {
background: linear-gradient(135deg, #f7ff00, #db36a4);
color: #fff;
font-family: 'Pacifico', cursive;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
text-align: center;
overflow: hidden;
}

#main-container {
background: rgba(0, 0, 0, 0.5);
padding: 40px;
border-radius: 20px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
position: relative;
animation: bounceIn 1s;
}

h1 {
margin: 0 0 20px 0;
font-size: 2.5em;
}

#greeting {
font-size: 1.5em;
animation: flash 1.5s infinite alternate;
}

button {
background-color: #ff5371;
border: none;
border-radius: 10px;
color: white;
font-size: 1.2em;
padding: 10px 20px;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
margin: 10px;
}

button:hover {
background-color: #ff8282;
transform: scale(1.1);
}

@keyframes bounceIn {
0% { transform: scale(0); }
100% { transform: scale(1); }
}

@keyframes flash {
0% { opacity: 1; }
100% { opacity: 0.7; }
}
</style>
</head>
<body>
<div id="main-container">
<h1>Welcome!</h1>
<div id="greeting">✨ Click the button for a colorful greeting! ✨</div>
<button id="generate">Generate Greeting</button>
</div>

<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function() {
const greetings = [
"🌞 Hello! Shine Bright!",
"🌻 Good Day! Spread Smiles!",
"🍀 Hi There! Stay Lucky!",
"🎉 Hooray! You are Amazing!",
"🌈 Welcome! Color Your Life!",
"✨ Greetings! Shine On!",
];

document.getElementById('generate').addEventListener('click', () => {
const randomGreeting = greetings[Math.floor(Math.random() * greetings.length)];
document.getElementById('greeting').innerText = randomGreeting;
});
});

function saveLocal() {
const greeting = document.getElementById('greeting').innerText;
localStorage.setItem('greeting', greeting);
}

function loadLocal() {
const savedGreeting = localStorage.getItem('greeting');
if (savedGreeting) {
document.getElementById('greeting').innerText = savedGreeting;
}
}

window.onload = loadLocal;
</script>
</body>
</html>