SLIDE ;- GREY AND ORANGE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dual Banner Ads</title>
<style>
/* Banner Container */
.banner-container {
width: 728px;
height: 90px;
position: relative;
overflow: hidden;
margin: 20px auto;
box-shadow: 0 3px 6px rgba(0,0,0,0.16);
cursor: pointer;
}
/* Common Banner Styles */
.banner-ad {
position: absolute;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-family: 'Arial', sans-serif;
font-weight: bold;
font-size: 22px;
text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
transition: transform 0.6s ease-in-out;
}
/* First Banner - Grey */
.banner-1 {
background: linear-gradient(135deg, #616161 0%, #9e9e9e 100%);
transform: translateX(0);
z-index: 2;
}
/* Second Banner - Bright Orange */
.banner-2 {
background: linear-gradient(135deg, #ff6d00 0%, #ffab40 100%);
transform: translateX(100%);
z-index: 1;
}
/* Hover Effects */
.banner-container:hover .banner-1 {
transform: translateX(-100%);
}
.banner-container:hover .banner-2 {
transform: translateX(0);
}
/* Banner Content */
.banner-content {
text-align: center;
padding: 0 20px;
}
.cta-button {
display: inline-block;
padding: 6px 18px;
margin-top: 8px;
background: rgba(255,255,255,0.3);
border: 1px solid white;
border-radius: 20px;
font-size: 14px;
text-decoration: none;
color: white;
transition: all 0.3s ease;
}
.cta-button:hover {
background: rgba(255,255,255,0.5);
}
</style>
</head>
<body>
<div class="banner-container">
<!-- First Banner Ad -->
<div class="banner-ad banner-1">
<div class="banner-content">
<div>Urdu Words and Characters Counter</div>
<a href="#" class="cta-button">Click Here</a>
</div>
</div>
<!-- Second Banner Ad -->
<div class="banner-ad banner-2">
<div class="banner-content">
<div>Urdu Words and Characters Counter</div>
<a href="#" class="cta-button">Learn More</a>
</div>
</div>
</div>
</body>
</html>
🟡🟢🔵🟣⚫🔴
BANNER ADS FOR 2 ;-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Horizontal Banner Ads</title>
<style>
.banners-container {
display: flex;
gap: 20px;
justify-content: center;
margin: 20px auto;
flex-wrap: wrap;
max-width: 1476px; /* (728*2) + 20 gap */
}
.banner {
width: 728px;
height: 90px;
position: relative;
overflow: hidden;
box-shadow: 0 3px 6px rgba(0,0,0,0.16);
cursor: pointer;
}
/* First Banner - Grey Gradient */
.banner-1 {
background: linear-gradient(135deg, #616161 0%, #9e9e9e 100%);
}
/* Second Banner - Orange Gradient */
.banner-2 {
background: linear-gradient(135deg, #ff6d00 0%, #ffab40 100%);
}
.banner-content {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
font-family: 'Arial', sans-serif;
font-weight: bold;
font-size: 22px;
text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.cta-button {
display: inline-block;
padding: 6px 18px;
margin-top: 8px;
background: rgba(255,255,255,0.3);
border: 1px solid white;
border-radius: 20px;
font-size: 14px;
text-decoration: none;
color: white;
transition: all 0.3s ease;
}
.cta-button:hover {
background: rgba(255,255,255,0.5);
}
</style>
</head>
<body>
<div class="banners-container">
<!-- First Banner -->
<div class="banner banner-1">
<div class="banner-content">
<div>BANNER AD 1</div>
<a href="#" class="cta-button">Click Here</a>
</div>
</div>
<!-- Second Banner -->
<div class="banner banner-2">
<div class="banner-content">
<div>BANNER AD 2</div>
<a href="#" class="cta-button">Learn More</a>
</div>
</div>
</div>
</body>
</html>
////////////////////////////////
MOVING SLIDE RED AND GREEN
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Horizontal Banner Ads</title>
<style>
.banners-container {
display: flex;
gap: 20px;
justify-content: center;
margin: 20px auto;
flex-wrap: wrap;
max-width: 1476px; /* (728*2) + 20 gap */
}
.banner {
width: 728px;
height: 90px;
position: relative;
overflow: hidden;
box-shadow: 0 3px 6px rgba(0,0,0,0.16);
cursor: pointer;
}
/* First Banner - Bright Red Gradient */
.banner-1 {
background: linear-gradient(135deg, #ff0000 0%, #ff6b6b 100%);
}
/* Second Banner - Bright Green Gradient */
.banner-2 {
background: linear-gradient(135deg, #00cc00 0%, #66ff66 100%);
}
.banner-content {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
font-family: 'Arial', sans-serif;
font-weight: bold;
font-size: 22px;
text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.cta-button {
display: inline-block;
padding: 6px 18px;
margin-top: 8px;
background: rgba(255,255,255,0.3);
border: 1px solid white;
border-radius: 20px;
font-size: 14px;
text-decoration: none;
color: white;
transition: all 0.3s ease;
}
.cta-button:hover {
background: rgba(255,255,255,0.5);
}
</style>
</head>
<body>
<div class="banners-container">
<!-- First Banner - Red -->
<div class="banner banner-1">
<div class="banner-content">
<div>BANNER AD 1</div>
<a href="#" class="cta-button">Click Here</a>
</div>
</div>
<!-- Second Banner - Green -->
<div class="banner banner-2">
<div class="banner-content">
<div>BANNER AD 2</div>
<a href="#" class="cta-button">Learn More</a>
</div>
</div>
</div>
</body>
</html>
No comments:
Post a Comment