PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.7
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.7
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 / rotating-image-tiles / style.css

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

111 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* =====================================================
2 Rotating Image Tiles — bkbg-rit-*
3 ===================================================== */
4
5 .bkbg-rit-app {
6 box-sizing: border-box;
7 }
8
9 .bkbg-rit-grid {
10 display: grid;
11 width: 100%;
12 box-sizing: border-box;
13 }
14
15 /* ── Tile wrapper ── */
16 .bkbg-rit-tile {
17 cursor: pointer;
18 -webkit-perspective: 900px;
19 perspective: 900px;
20 flex-shrink: 0;
21 }
22
23 /* ── Flip inner ── */
24 .bkbg-rit-inner {
25 width: 100%;
26 height: 100%;
27 position: relative;
28 -webkit-transform-style: preserve-3d;
29 transform-style: preserve-3d;
30 transition: transform 600ms cubic-bezier(.4, 0, .2, 1);
31 will-change: transform;
32 }
33
34 /* Flipped state — Y axis (default) */
35 .bkbg-rit-axis-y .bkbg-rit-inner.bkbg-rit-flipped {
36 transform: rotateY(180deg);
37 }
38
39 /* Flipped state — X axis */
40 .bkbg-rit-axis-x .bkbg-rit-inner.bkbg-rit-flipped {
41 transform: rotateX(180deg);
42 }
43
44 /* ── Face base ── */
45 .bkbg-rit-front,
46 .bkbg-rit-back {
47 position: absolute;
48 inset: 0;
49 border-radius: inherit;
50 overflow: hidden;
51 -webkit-backface-visibility: hidden;
52 backface-visibility: hidden;
53 background-size: cover;
54 background-position: center;
55 background-repeat: no-repeat;
56 }
57
58 /* Back face flip — Y */
59 .bkbg-rit-axis-y .bkbg-rit-back {
60 transform: rotateY(180deg);
61 }
62
63 /* Back face flip — X */
64 .bkbg-rit-axis-x .bkbg-rit-back {
65 transform: rotateX(180deg);
66 }
67
68 /* ── Label overlay ── */
69 .bkbg-rit-label {
70 position: absolute;
71 bottom: 0;
72 left: 0;
73 right: 0;
74 padding: 8px 12px;
75 text-align: center;
76 pointer-events: none;
77 font-family: var(--bkrit-lt-font-family, inherit);
78 font-size: var(--bkrit-lt-font-size-d, 14px);
79 font-weight: var(--bkrit-lt-font-weight, 600);
80 font-style: var(--bkrit-lt-font-style, normal);
81 text-decoration: var(--bkrit-lt-text-decoration, none);
82 text-transform: var(--bkrit-lt-text-transform, none);
83 line-height: var(--bkrit-lt-line-height-d, 1.3);
84 letter-spacing: var(--bkrit-lt-letter-spacing-d, normal);
85 word-spacing: var(--bkrit-lt-word-spacing-d, normal);
86 }
87
88 @media (max-width: 1024px) {
89 .bkbg-rit-label {
90 font-size: var(--bkrit-lt-font-size-t, var(--bkrit-lt-font-size-d, 14px));
91 line-height: var(--bkrit-lt-line-height-t, var(--bkrit-lt-line-height-d, 1.3));
92 letter-spacing: var(--bkrit-lt-letter-spacing-t, var(--bkrit-lt-letter-spacing-d, normal));
93 word-spacing: var(--bkrit-lt-word-spacing-t, var(--bkrit-lt-word-spacing-d, normal));
94 }
95 }
96 @media (max-width: 767px) {
97 .bkbg-rit-label {
98 font-size: var(--bkrit-lt-font-size-m, var(--bkrit-lt-font-size-t, var(--bkrit-lt-font-size-d, 14px)));
99 line-height: var(--bkrit-lt-line-height-m, var(--bkrit-lt-line-height-t, var(--bkrit-lt-line-height-d, 1.3)));
100 letter-spacing: var(--bkrit-lt-letter-spacing-m, var(--bkrit-lt-letter-spacing-t, var(--bkrit-lt-letter-spacing-d, normal)));
101 word-spacing: var(--bkrit-lt-word-spacing-m, var(--bkrit-lt-word-spacing-t, var(--bkrit-lt-word-spacing-d, normal)));
102 }
103 }
104
105 /* ── Reduced motion ── */
106 @media (prefers-reduced-motion: reduce) {
107 .bkbg-rit-inner {
108 transition: none !important;
109 }
110 }
111