полка хранения
[hideprofile][html]<posters>
<name-tem>ужасы</name-tem>
<section>
<article style="--avarage-color: #506365"><figure><img src="
https://avatars.mds.yandex.net/get-kino … 4290/1920x
"></figure></article>
<article style="--avarage-color: #31423e"><figure><img src="
https://avatars.mds.yandex.net/get-kino … dde4/1920x
"></figure></article>
<article style="--avarage-color: #785d98"><figure><img src="
https://avatars.mds.yandex.net/get-kino … aff0/1920x
"></figure></article>
<article style="--avarage-color: #b47460">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/10953618/77e4f8b2-dc88-404b-a4f8-3e0c5e583925/1920x">
</figure>
</article>
<article style="--avarage-color: #60a6ce">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/10853012/74d7acc1-7252-47af-806a-e0922ea14ac1/1920x">
</figure>
</article>
<article style="--avarage-color: #46666f">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/10812607/1fffb031-c337-4ff5-a664-e8fbf011a3f8/1920x">
</figure>
</article>
<article style="--avarage-color: #8e898f">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/9784475/dfc681c3-6e8f-4d37-b1b4-18ec6c97e22e/1920x">
</figure>
</article>
<article style="--avarage-color: #8d516e">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/9784475/11c5014b-27e2-4c0e-9e41-e2935d5a82ef/1920x">
</figure>
</article>
<article style="--avarage-color: #b0b6a9">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/10893610/58239d8d-44d3-475e-ab3f-878679c64290/1920x">
</figure>
</article>
<article style="--avarage-color: #afa294">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/10703959/830d5135-67a0-4dfc-ac65-bac199bcdde4/1920x">
</figure>
</article>
<article style="--avarage-color: #3c3c3d">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/10671298/c8695411-ed80-4bc1-9cf6-3210d06baff0/1920x">
</figure>
</article>
<article style="--avarage-color: #b47460">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/10953618/77e4f8b2-dc88-404b-a4f8-3e0c5e583925/1920x">
</figure>
</article>
<article style="--avarage-color: #60a6ce">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/10853012/74d7acc1-7252-47af-806a-e0922ea14ac1/1920x">
</figure>
</article>
<article style="--avarage-color: #46666f">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/10812607/1fffb031-c337-4ff5-a664-e8fbf011a3f8/1920x">
</figure>
</article>
<article style="--avarage-color: #8e898f">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/9784475/dfc681c3-6e8f-4d37-b1b4-18ec6c97e22e/1920x">
</figure>
</article>
<article style="--avarage-color: #8d516e">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/9784475/11c5014b-27e2-4c0e-9e41-e2935d5a82ef/1920x">
</figure>
</article>
</section>
<name-tem>драмы</name-tem>
<section>
<article style="--avarage-color: #b0b6a9">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/10893610/58239d8d-44d3-475e-ab3f-878679c64290/1920x">
</figure>
</article>
<article style="--avarage-color: #afa294">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/10703959/830d5135-67a0-4dfc-ac65-bac199bcdde4/1920x">
</figure>
</article>
<article style="--avarage-color: #3c3c3d">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/10671298/c8695411-ed80-4bc1-9cf6-3210d06baff0/1920x">
</figure>
</article>
</section>
<name-tem>Комедии</name-tem>
<section>
<article style="--avarage-color: #b0b6a9">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/10893610/58239d8d-44d3-475e-ab3f-878679c64290/1920x">
</figure>
</article>
<article style="--avarage-color: #afa294">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/10703959/830d5135-67a0-4dfc-ac65-bac199bcdde4/1920x">
</figure>
</article>
<article style="--avarage-color: #3c3c3d">
<figure>
<img src="https://avatars.mds.yandex.net/get-kinopoisk-image/10671298/c8695411-ed80-4bc1-9cf6-3210d06baff0/1920x">
</figure>
</article>
</section>
</posters>
<style>
@layer base, tokens, animations, components, utilities;
@layer tokens {
@font-face {
font-family: Troubleside;
src: url("https://cdn.jsdelivr.net/gh/chytanka/chytanka.github.io/src/assets/fonts/Troubleside.ttf");
font-display: swap;
}
:root {
--ratio: 257 / 364;
--t: 0.133333334s;
--accent: oklch(from #ffd60a l c h);
--surface: oklch(from #166496 0.12 min(c, 0.0512) h);
--avarage-l: 0.48;
--avarage-l-2: 0.36;
--avarage-base: oklch(from #ffd60a var(--avarage-l) 0.0192 h);
--text: white;
--radius: 0.5rem;
--border-size: 0.25rem;
color: var(--text);
font-size: clamp(0.875rem, 0.8214285714rem + 0.2380952381vw, 1rem) !important;
line-height: 1.3;
font-family: Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
:root {
--avarage-l: 0.72;
--avarage-l-2: 0.6;
--accent: oklch(from #166496 l c h);
--surface: oklch(from #ffd60a 1 min(c, 0.0256) h);
--avarage-base: oklch(from #ffd60a 0.48 0.0192 h);
--text: black;
}
}
@property --item-scale {
syntax: "<number>";
inherits: true;
initial-value: 1;
}
@property --item-angle {
syntax: "<angle>";
inherits: true;
initial-value: 0deg;
}
}
@layer animations {
@keyframes shrink-top {
0% {
--item-scale: 0.5;
--item-angle: -60deg;
transform-origin: top;
}
}
@keyframes shrink-bottom {
0% {
--item-scale: 0.5;
--item-angle: 60deg;
transform-origin: bottom;
}
}
}
@layer components {
name-tem {
display: flex;
color: var(--cl3);
font: 28px var(--1ft);
margin: 0 0 4px !important;
justify-content: center;
}
posters {
padding: 2rem;
}
section {
margin-bottom: 2rem !important;
position: relative;
width: 900px;
perspective: 4000px;
display: flex;
gap: 15px 10px;
flex-wrap: wrap;
justify-content: space-evenly; }
}
article {
--deg: 0.8deg;
--y: 0;
--avarage: oklch(from var(--avarage-color) var(--avarage-l) 0.0192 h);
--shadow-color: oklch(
from var(--avarage, var(--avarage-base)) var(--avarage-l-2) c h
);
--shadow-distance: var(--border-size);
border: var(--border-size) solid var(--avarage, var(--avarage-base));
border-radius: var(--radius);
background-color: var(--avarage, var(--avarage-base));
background-image: radial-gradient(
oklch(from var(--shadow-color) l c h) 1px,
transparent 0px
);
width: 90px; height: 140px;
background-repeat: repeat;
background-size: 7px 6px;
background-position: center;
box-shadow: 1px 1px var(--surface), var(--shadow-distance) var(--shadow-distance) var(--shadow-color);
opacity: min(var(--item-scale), 0.8);
transform: rotate(var(--deg)) translateY(var(--y)) scale(var(--item-scale))
rotateX(var(--item-angle));
transition: all var(--t) ease-in-out;
will-change: transform;
transform-style: preserve-3d;
&:hover {
--deg: 0 !important;
--y: -1.25ch;
--shadow-distance: calc(var(--border-size) * 2);
opacity: 1;
}
}
@supports (animation-timeline: view()) {
article {
animation: shrink-top both ease-in-out,
shrink-bottom both ease-in-out reverse;
animation-timeline: view(block);
animation-range: entry, exit;
}
}
figure {
width: 90px;
height: auto;
}
figure img {
aspect-ratio: var(--ratio);
width: 90px;
height: 140px;
object-fit: cover;
border-radius: calc(var(--radius) - var(--border-size));
}
figure figcaption {
font-family: Troubleside;
margin: 11px 2px !important;
display: -webkit-box;
text-align: center;
-webkit-box-orient: vertical;
/* -webkit-line-clamp: 1; */
overflow: hidden;
word-break: break-word;
line-height: 1;
}
}
@layer utilities {
article:nth-child(2n) {
--deg: -0.8deg;
}
article:nth-child(2n + 1) {
--deg: -0.6deg;
}
article:nth-child(3n) {
--deg: 0.6deg;
}
article:nth-child(4n + 2) {
--deg: -0.75deg;
}
article:nth-child(5n) {
--deg: 0.25deg;
}
article:nth-child(6n + 3) {
--deg: -0.3deg;
}
article:nth-child(7n) {
--deg: 0.9deg;
}
}
</style>[/html]









