/* Black Week banner over the haar-werk.ch slider (diagonal) */
.bt_bb_slider {
position: relative;
overflow: hidden; /* schneidet die überstehenden Ecken des gedrehten Banners ab */
}
.bt_bb_slider::after {
content: "";
position: absolute;
left: -5%;
right: -5%; /* breiter als der Slider, damit nach der Drehung keine Lücken entstehen */
bottom: 60px; /* Abstand vom unteren Rand */
height: 64px;
z-index: 10;
pointer-events: none;
transform: rotate(-2.5deg); /* negativ = rechts höher, positiv = rechts tiefer */
transform-origin: center;
background:
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='64'%3E%3Crect width='240' height='64' fill='%23000'/%3E%3Crect x='240' width='240' height='64' fill='%23e49299'/%3E%3Ctext x='120' y='42' font-family='Arial,Helvetica,sans-serif' font-weight='700' font-size='26' letter-spacing='3' text-anchor='middle' fill='%23e49299'%3EBLACK WEEK%3C/text%3E%3Ctext x='360' y='42' font-family='Arial,Helvetica,sans-serif' font-weight='700' font-size='26' letter-spacing='3' text-anchor='middle' fill='%23000'%3EBLACK WEEK%3C/text%3E%3C/svg%3E")
repeat-x 0 0 / auto 100%;
animation: bw-scroll 5s linear infinite;
}
@keyframes bw-scroll {
to { background-position-x: -480px; }
}
@media (prefers-reduced-motion: reduce) {
.bt_bb_slider::after { animation: none; }
}
/*Countdown*/
/* Black Week flip-clock countdown */
.hw-countdown {
--h: 76px; /* card height */
--w: 54px; /* card width */
--pink: #e49299;
--black: #000;
display: flex;
justify-content: center;
gap: 22px;
margin: 24px auto;
font-family: inherit;
}
.hw-unit {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
--bg: var(--black);
--fg: var(--pink);
}
.hw-unit:nth-child(even) { /* alternate black / pink like the banner tiles */
--bg: var(--pink);
--fg: var(--black);
}
.hw-digits { display: flex; gap: 4px; }
.hw-digit {
position: relative;
width: var(--w);
height: var(--h);
perspective: 400px;
}
/* hinge line across the middle */
.hw-digit::after {
content: "";
position: absolute;
left: 0; right: 0;
top: 50%;
height: 2px;
margin-top: -1px;
background: rgba(255, 255, 255, 1);
z-index: 5;
}
.hw-half {
position: absolute;
left: 0;
width: 100%;
height: 50%;
overflow: hidden;
background: var(--bg);
color: var(--fg);
backface-visibility: hidden;
}
.hw-half span {
position: absolute;
left: 0;
width: 100%;
height: var(--h);
line-height: var(--h);
text-align: center;
font-size: calc(var(--h) * .68);
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.hw-top { top: 0; border-radius: 6px 6px 0 0; }
.hw-bottom { bottom: 0; border-radius: 0 0 6px 6px; }
.hw-top span { top: 0; }
.hw-bottom span { top: calc(var(--h) / -2); }
/* flipping flaps */
.hw-flap { visibility: hidden; z-index: 4; }
.hw-flap-top { transform-origin: bottom; }
.hw-flap-bottom { transform-origin: top; }
.hw-flipping .hw-flap { visibility: visible; }
.hw-flipping .hw-flap-top {
animation: hw-fold .3s ease-in both;
}
.hw-flipping .hw-flap-bottom {
animation: hw-unfold .3s ease-out .3s both;
}
@keyframes hw-fold {
from { transform: rotateX(0deg); }
to { transform: rotateX(-90deg); }
}
@keyframes hw-unfold {
from { transform: rotateX(90deg); }
to { transform: rotateX(0deg); }
}
.hw-label {
font-size: 12px;
font-weight: 700;
letter-spacing: 2px;
text-transform: uppercase;
color: #222;
}
@media (max-width: 600px) {
.hw-countdown { --h: 56px; --w: 38px; gap: 12px; }
.hw-label { font-size: 10px; letter-spacing: 1px; }
}
BlackWeek_Banner
Einfach ins Custom CSS kopieren für nächstes Jahr