What’s Your Dream Travel Personality?
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.fade-in {
animation: fadeIn 0.5s ease-in;
}
.option:hover {
transform: scale(1.02);
transition: transform 0.2s;
}
.progress-bar {
height: 8px;
background: #e5e7eb;
border-radius: 4px;
overflow: hidden;
}
.progress {
height: 100%;
background: #4CAF50;
transition: width 0.3s;
}
.result-badge {
border: 4px solid #4CAF50;
border-radius: 50%;
padding: 10px;
background: white;
}
What’s Your Dream Travel Personality?
Next
const questions = [
{
question: “What’s your ideal vacation vibe?”,
options: [
{ text: “Thrills and adrenaline-pumping activities!”, value: “adventure”, image: “
https://images.unsplash.com/photo-1501555088652-021faa106b9b?ixlib=rb-4.0.3&auto=format&fit=crop&w=300&q=80” },
{ text: “Exploring museums and local history.”, value: “culture”, image: “
https://atenajos.blog/wp-content/uploads/2025/08/f2acd-exploring-museums-and-local-history.png?ixlib=rb-4.0.3&auto=format&fit=crop&w=300&q=80” },
{ text: “Relaxing by the pool with a cocktail.”, value: “luxury”, image: “
https://images.unsplash.com/photo-1512100356356-de1b84283e18?ixlib=rb-4.0.3&auto=format&fit=crop&w=300&q=80” },
{ text: “Hiking and connecting with nature.”, value: “nature”, image: “
https://images.unsplash.com/photo-1472214103451-9374bd1c798e?ixlib=rb-4.0.3&auto=format&fit=crop&w=300&q=80” }
]
},
{
question: “Pick your dream destination!”,
options: [
{ text: “New Zealand for epic adventures.”, value: “adventure”, image: “
https://images.unsplash.com/photo-1501555088652-021faa106b9b?ixlib=rb-4.0.3&auto=format&fit=crop&w=300&q=80” },
{ text: “Paris for art and culture.”, value: “culture”, image: “
https://atenajos.blog/wp-content/uploads/2025/08/f2acd-exploring-museums-and-local-history.png?ixlib=rb-4.0.3&auto=format&fit=crop&w=300&q=80” },
{ text: “Maldives for luxury resorts.”, value: “luxury”, image: “
https://images.unsplash.com/photo-1512100356356-de1b84283e18?ixlib=rb-4.0.3&auto=format&fit=crop&w=300&q=80” },
{ text: “Costa Rica for lush rainforests.”, value: “nature”, image: “
https://images.unsplash.com/photo-1472214103451-9374bd1c798e?ixlib=rb-4.0.3&auto=format&fit=crop&w=300&q=80” }
]
},
{
question: “How do you plan your trips?”,
options: [
{ text: “Spontaneously, chasing excitement!”, value: “adventure”, image: “
https://images.unsplash.com/photo-1501555088652-021faa106b9b?ixlib=rb-4.0.3&auto=format&fit=crop&w=300&q=80” },
{ text: “Carefully, with a cultural itinerary.”, value: “culture”, image: “
https://atenajos.blog/wp-content/uploads/2025/08/f2acd-exploring-museums-and-local-history.png?ixlib=rb-4.0.3&auto=format&fit=crop&w=300&q=80” },
{ text: “Book the best hotels and spas.”, value: “luxury”, image: “
https://images.unsplash.com/photo-1512100356356-de1b84283e18?ixlib=rb-4.0.3&auto=format&fit=crop&w=300&q=80” },
{ text: “Focus on eco-friendly spots.”, value: “nature”, image: “
https://images.unsplash.com/photo-1472214103451-9374bd1c798e?ixlib=rb-4.0.3&auto=format&fit=crop&w=300&q=80” }
]
},
{
question: “What’s your travel must-have?”,
options: [
{ text: “A sturdy backpack for gear.”, value: “adventure”, image: “
https://images.unsplash.com/photo-1501555088652-021faa106b9b?ixlib=rb-4.0.3&auto=format&fit=crop&w=300&q=80” },
{ text: “A guidebook for history.”, value: “culture”, image: “
https://atenajos.blog/wp-content/uploads/2025/08/f2acd-exploring-museums-and-local-history.png?ixlib=rb-4.0.3&auto=format&fit=crop&w=300&q=80” },
{ text: “Designer sunglasses.”, value: “luxury”, image: “
https://images.unsplash.com/photo-1512100356356-de1b84283e18?ixlib=rb-4.0.3&auto=format&fit=crop&w=300&q=80” },
{ text: “A reusable water bottle.”, value: “nature”, image: “
https://images.unsplash.com/photo-1472214103451-9374bd1c798e?ixlib=rb-4.0.3&auto=format&fit=crop&w=300&q=80” }
]
}
];
let currentQuestion = 0;
let scores = { adventure: 0, culture: 0, luxury: 0, nature: 0 };
function updateProgress() {
const progress = document.getElementById(‘progress’);
const percentage = ((currentQuestion + 1) / questions.length) * 100;
progress.style.width = `${percentage}%`;
}
function loadQuestion() {
const q = questions[currentQuestion];
const quizDiv = document.getElementById(‘quiz’);
quizDiv.innerHTML = `
${q.question}
${q.options.map((option) => `
${option.text}
`).join(”)}
`;
updateProgress();
document.getElementById(‘next-btn’).style.display = ‘block’;
}
function selectOption(value) {
scores[value]++;
document.querySelectorAll(‘.option’).forEach(opt => opt.classList.remove(‘bg-green-200’));
event.target.classList.add(‘bg-green-200’);
}
function nextQuestion() {
if (!document.querySelector(‘.option.bg-green-200’)) {
alert(‘Please select an option!’);
return;
}
if (currentQuestion scores[key] === maxScore);
let resultText, imageUrl, description;
switch (personality) {
case ‘adventure’:
resultText = “Adventure Seeker”;
description = “You crave thrills and new experiences, from skydiving to exploring uncharted territories. Your next trip? Somewhere wild and untamed!”;
imageUrl = “
https://images.unsplash.com/photo-1501555088652-021faa106b9b?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80”;
break;
case ‘culture’:
resultText = “Culture Explorer”;
description = “You love diving into history, art, and local traditions. Museums and ancient ruins are your happy place!”;
imageUrl = “
https://atenajos.blog/wp-content/uploads/2025/08/87091-culture-explorer.png?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80”;
break;
case ‘luxury’:
resultText = “Luxury Lounger”;
description = “You travel in style, seeking out the finest resorts and pampering experiences. Only the best for you!”;
imageUrl = “
https://images.unsplash.com/photo-1512100356356-de1b84283e18?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80”;
break;
case ‘nature’:
resultText = “Nature Nomad”;
description = “You find peace in the great outdoors, from lush forests to towering mountains. Nature is your sanctuary!”;
imageUrl = “
https://images.unsplash.com/photo-1472214103451-9374bd1c798e?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80”;
break;
}
const shareText = encodeURIComponent(`I’m a ${resultText}! ${description} Find your travel personality at
https://atomic-temporary-240405815.wpcomstaging.com/`);
resultDiv.innerHTML = `
You’re a ${resultText}!
${description}
Take Quiz Again
`;
resultDiv.classList.remove(‘hidden’);
}
function restartQuiz() {
currentQuestion = 0;
scores = { adventure: 0, culture: 0, luxury: 0, nature: 0 };
document.getElementById(‘quiz’).classList.remove(‘hidden’);
document.getElementById(‘result’).classList.add(‘hidden’);
document.getElementById(‘next-btn’).classList.remove(‘hidden’);
loadQuestion();
}
loadQuestion();