Popup / 07 プレミアム|Premium
デザイン見本
Premium Popup
高級感のあるプレミアムなポップアップウィンドウです。
ゴールドを基調とした高級感あふれるデザインです。グラデーションのボーダーと深みのあるシャドウが、重要なお知らせやプレミアムなコンテンツの訴求に最適です。
実装コード
HTML
<div id="popup-container-7">
<button id="popup-btn-7">Premium</button>
</div>
<div id="popup-7" class="popup-7">
<div class="popup-content-7">
<p>Premium Popup</p>
<p>高級感のあるプレミアムなポップアップウィンドウです。</p>
</div>
</div>
CSS
/* Button Style */
#popup-btn-7 {
cursor: pointer;
border: none;
padding: 12px 24px;
border-radius: 16px;
color: #333;
background-color: #eee;
font-weight: 600;
box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
display: block;
margin: 0 auto;
width: 180px;
}
#popup-btn-7:hover {
opacity: 0.5;
}
/* Popup Style */
.popup-7 {
position: fixed;
bottom: -100%;
left: 50%;
transform: translateX(-50%);
z-index: 1001;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
max-width: 90%;
max-height: 90%;
}
.popup-7.active {
opacity: 1;
visibility: visible;
bottom: 20px;
transform: translateX(-50%);
animation: popupShowHide7 3.4s ease forwards;
}
@keyframes popupShowHide7 {
0% {
opacity: 0;
transform: translateX(-50%) translateY(100%);
}
20% {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
80% {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
100% {
opacity: 0;
transform: translateX(-50%) translateY(100%);
}
}
.popup-content-7 {
background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
padding: 30px;
border-radius: 20px;
text-align: center;
position: relative;
min-width: 300px;
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
border: 2px solid #ffd700;
overflow: hidden;
}
.popup-content-7::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
}
.popup-content-7 p:first-child {
font-size: 24px;
font-weight: bold;
margin-bottom: 15px;
color: #333;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.popup-content-7 p:last-of-type {
font-size: 16px;
color: #666;
margin-bottom: 25px;
line-height: 1.6;
}
JS
var btn = document.getElementById('popup-btn-7');
var popup = document.getElementById('popup-7');
if (btn && popup) {
btn.addEventListener('click', function () {
popup.classList.add('active');
});
popup.addEventListener('animationend', function () {
popup.classList.remove('active');
});
}