Meta Description" name="description" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>MBS Part-time MBA Banner</title>
<style>
body, html {
margin: 0;
padding: 0;
}
.banner {
width: 300px;
height: 250px;
background-color: #a30046;
position: relative;
font-family: 'Clan OT', sans-serif;
overflow: hidden;
color: white;
}
.logo {
position: absolute;
top: 10px;
right: 10px;
width: 100px;
}
.text-line {
position: absolute;
left: 20px;
font-size: 20px;
opacity: 0;
}
#line1 { top: 80px; }
#line2 { top: 110px; }
#line3 { top: 140px; }
.cta {
position: absolute;
bottom: 20px;
left: 20px;
background-color: #0077c8;
color: white;
border: none;
padding: 10px 20px;
font-weight: bold;
border-radius: 4px;
font-size: 14px;
cursor: pointer;
opacity: 0;
}
/* Optional animated background effect */
.background-shape {
position: absolute;
width: 400px;
height: 400px;
background: rgba(255, 255, 255, 0.05);
border-radius: 50%;
top: -100px;
left: -100px;
z-index: 0;
}
.content {
position: relative;
z-index: 1;
}
</style>
</head>
<body>
<div class="banner">
<div class="background-shape" id="bg-shape"></div>
<div class="content">
<img class="logo" src="2505-MBS-UoM-RGB-Horizontal_hi-res(300dpi).png" alt="MBS Logo" />
<div class="text-line" id="line1">Start your</div>
<div class="text-line" id="line2">Part-time MBA</div>
<div class="text-line" id="line3">in June.</div>
<button class="cta" id="cta">Apply now</button>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<script>
// Animate text lines
gsap.to("#line1", { opacity: 1, y: -10, duration: 0.8, delay: 0.3 });
gsap.to("#line2", { opacity: 1, y: -10, duration: 0.8, delay: 1.0 });
gsap.to("#line3", { opacity: 1, y: -10, duration: 0.8, delay: 1.7 });
gsap.to("#cta", { opacity: 1, y: -10, duration: 0.8, delay: 2.4 });
// Background motion (subtle pulsing)
gsap.to("#bg-shape", {
scale: 1.2,
duration: 5,
ease: "sine.inOut",
repeat: -1,
yoyo: true
});
</script>
</body>
</html>
3
2
28KB
73KB
207.0ms
316.0ms
207.0ms