PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.13
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.13
2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
blockenberg / blocks / hovering-image-stack / style.css

style.css in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.13, at blocks/hovering-image-stack/style.css

93 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ===================================================
2 Hovering Image Stack — bkbg-his-* (style.css)
3 =================================================== */
4
5 .bkbg-his-wrap {
6 width: 100%;
7 }
8
9 .bkbg-his-outer {
10 display: flex;
11 justify-content: center;
12 align-items: center;
13 padding: 40px 16px;
14 }
15
16 /* ── Stack container ───────────────────────────────────────────────── */
17 .bkbg-his-stack {
18 position: relative;
19 display: inline-flex;
20 align-items: center;
21 cursor: pointer;
22 }
23
24 /* ── Individual card ───────────────────────────────────────────────── */
25 .bkbg-his-card {
26 position: absolute;
27 overflow: hidden;
28 will-change: transform;
29 transition: transform 0.45s cubic-bezier(.34,1.56,.64,1),
30 box-shadow 0.3s ease,
31 z-index 0s;
32 }
33
34 .bkbg-his-card img {
35 width: 100%;
36 height: 100%;
37 object-fit: cover;
38 display: block;
39 pointer-events: none;
40 user-select: none;
41 }
42
43 /* ── Caption typography (CSS-var driven) ───────────────────────────── */
44 .bkbg-his-caption {
45 position: absolute;
46 bottom: 0; left: 0; right: 0;
47 padding: 8px 12px;
48 text-align: center;
49 opacity: 0;
50 transform: translateY(4px);
51 transition: opacity 0.3s ease, transform 0.3s ease;
52 pointer-events: none;
53 font-family: var(--bkbg-his-cap-font-family, inherit);
54 font-size: var(--bkbg-his-cap-font-size-d, var(--bkbg-his-cap-sz, 13px));
55 font-weight: var(--bkbg-his-cap-font-weight, 600);
56 font-style: var(--bkbg-his-cap-font-style, normal);
57 text-decoration: var(--bkbg-his-cap-text-decoration, none);
58 text-transform: var(--bkbg-his-cap-text-transform, none);
59 line-height: var(--bkbg-his-cap-line-height-d, 1.4);
60 letter-spacing: var(--bkbg-his-cap-letter-spacing-d, normal);
61 word-spacing: var(--bkbg-his-cap-word-spacing-d, normal);
62 }
63
64 /* ── Responsive: Tablet ── */
65 @media (max-width: 1024px) {
66 .bkbg-his-caption {
67 font-size: var(--bkbg-his-cap-font-size-t, var(--bkbg-his-cap-font-size-d, var(--bkbg-his-cap-sz, 13px)));
68 line-height: var(--bkbg-his-cap-line-height-t, var(--bkbg-his-cap-line-height-d, 1.4));
69 letter-spacing: var(--bkbg-his-cap-letter-spacing-t, var(--bkbg-his-cap-letter-spacing-d, normal));
70 word-spacing: var(--bkbg-his-cap-word-spacing-t, var(--bkbg-his-cap-word-spacing-d, normal));
71 }
72 }
73
74 /* ── Responsive: Mobile ── */
75 @media (max-width: 767px) {
76 .bkbg-his-caption {
77 font-size: var(--bkbg-his-cap-font-size-m, var(--bkbg-his-cap-font-size-t, var(--bkbg-his-cap-font-size-d, var(--bkbg-his-cap-sz, 13px))));
78 line-height: var(--bkbg-his-cap-line-height-m, var(--bkbg-his-cap-line-height-t, var(--bkbg-his-cap-line-height-d, 1.4)));
79 letter-spacing: var(--bkbg-his-cap-letter-spacing-m, var(--bkbg-his-cap-letter-spacing-t, var(--bkbg-his-cap-letter-spacing-d, normal)));
80 word-spacing: var(--bkbg-his-cap-word-spacing-m, var(--bkbg-his-cap-word-spacing-t, var(--bkbg-his-cap-word-spacing-d, normal)));
81 }
82 }
83
84 .bkbg-his-stack:hover .bkbg-his-caption {
85 opacity: 1;
86 transform: translateY(0);
87 }
88
89 /* ── Reduced motion ────────────────────────────────────────────────── */
90 @media (prefers-reduced-motion: reduce) {
91 .bkbg-his-card { transition: none !important; }
92 }
93