@shower/ribbon
Version:
Ribbon theme for Shower HTML presentation engine
55 lines (45 loc) • 906 B
CSS
/* Shout */
.slide .shout {
position: absolute;
top: 50%;
left: 0;
width: 100%;
text-align: center;
text-wrap: balance;
line-height: 1;
font-size: 150px;
transform: translateY(-50%);
}
/* Link */
.slide .shout a {
background-image: linear-gradient(
to top,
rgb(75 134 194 / 40%) 0.06em,
transparent 0.06em
);
background-position: bottom 0.13em left 0;
background-repeat: repeat-x;
}
/* Full */
.shower.full .slide .shout.grow {
transform: scale(0.1) translateY(-50%);
opacity: 0;
}
.shower.full .slide .shout.shrink {
transform: scale(10) translateY(-50%);
opacity: 0;
}
/* Active */
@keyframes shout {
to {
transform: scale(1) translateY(-50%);
opacity: 1;
}
}
.shower.full .slide.active .shout.grow,
.shower.full .slide.active .shout.shrink {
animation-duration: 0.4s;
animation-fill-mode: forwards;
animation-name: shout;
animation-timing-function: ease-out;
}