| 1 |
/* |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
Author : Amedea |
| 6 |
|
| 7 |
Author URI : https://amedeapro.com |
| 8 |
|
| 9 |
Author : Moskva Yigit |
| 10 |
|
| 11 |
Author URI : http://moskvayigit.com |
| 12 |
|
| 13 |
Version : 0.0.3.9 |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
Table of Contents |
| 18 |
|
| 19 |
- Grid Hover Motion |
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
*/ |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
/*---------------------------- |
| 28 |
|
| 29 |
.-- Grid Hover Motion |
| 30 |
|
| 31 |
-----------------------------*/ |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
.dark .content__title, |
| 36 |
|
| 37 |
.dark .content__title-sub{ |
| 38 |
|
| 39 |
color: var(--amedea--preset--color--black); |
| 40 |
|
| 41 |
} |
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
.light .content__title, |
| 46 |
|
| 47 |
.light .content__title-sub{ |
| 48 |
|
| 49 |
color: var(--amedea--preset--color--white); |
| 50 |
|
| 51 |
} |
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
.no-select { |
| 56 |
|
| 57 |
-webkit-touch-callout: none; |
| 58 |
|
| 59 |
-webkit-user-select: none; |
| 60 |
|
| 61 |
-moz-user-select: none; |
| 62 |
|
| 63 |
-ms-user-select: none; |
| 64 |
|
| 65 |
user-select: none; |
| 66 |
|
| 67 |
} |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
.grid--hover--motion { |
| 72 |
|
| 73 |
height: 100%; |
| 74 |
|
| 75 |
width: 100%; |
| 76 |
|
| 77 |
position: relative; |
| 78 |
|
| 79 |
overflow: hidden; |
| 80 |
|
| 81 |
} |
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
.grid-hover-motion-hover-content { |
| 86 |
|
| 87 |
display: flex; |
| 88 |
|
| 89 |
flex-direction: column; |
| 90 |
|
| 91 |
width: 100vw; |
| 92 |
|
| 93 |
height: calc(100vh - 13rem); |
| 94 |
|
| 95 |
position: relative; |
| 96 |
|
| 97 |
align-items: center; |
| 98 |
|
| 99 |
justify-content: center; |
| 100 |
|
| 101 |
max-height: 300px; |
| 102 |
|
| 103 |
overflow: hidden; |
| 104 |
|
| 105 |
} |
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
.grid-hover-motion { |
| 110 |
|
| 111 |
pointer-events: none; |
| 112 |
|
| 113 |
position: absolute; |
| 114 |
|
| 115 |
width: 110%; |
| 116 |
|
| 117 |
height: 110%; |
| 118 |
|
| 119 |
top: -5%; |
| 120 |
|
| 121 |
left: -5%; |
| 122 |
|
| 123 |
display: grid; |
| 124 |
|
| 125 |
grid-template-columns: repeat(50,2%); |
| 126 |
|
| 127 |
grid-template-rows: repeat(50,2%); |
| 128 |
|
| 129 |
} |
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
.grid-hover-motion__item { |
| 134 |
|
| 135 |
position: relative; |
| 136 |
|
| 137 |
} |
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
.grid-hover-motion--img .grid-hover-motion__item { |
| 142 |
|
| 143 |
overflow: hidden; |
| 144 |
|
| 145 |
display: flex; |
| 146 |
|
| 147 |
align-items: center; |
| 148 |
|
| 149 |
justify-content: center; |
| 150 |
|
| 151 |
will-change: transform; |
| 152 |
|
| 153 |
} |
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
.grid-hover-motion__item-img { |
| 158 |
|
| 159 |
position: relative; |
| 160 |
|
| 161 |
width: 100%; |
| 162 |
|
| 163 |
height: 100%; |
| 164 |
|
| 165 |
background-size: cover; |
| 166 |
|
| 167 |
background-position: 50% 50%; |
| 168 |
|
| 169 |
} |
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
.grid-hover-motion--img .grid-hover-motion__item-img { |
| 174 |
|
| 175 |
flex: none; |
| 176 |
|
| 177 |
width: calc(100% + 100px); |
| 178 |
|
| 179 |
height: calc(100% + 100px); |
| 180 |
|
| 181 |
will-change: transform; |
| 182 |
|
| 183 |
} |
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
.pos-1 { |
| 188 |
|
| 189 |
grid-area: 10 / 1 / 26 / 7; |
| 190 |
|
| 191 |
} |
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
.pos-2 { |
| 196 |
|
| 197 |
grid-area: 1 / 18 / 9 / 27; |
| 198 |
|
| 199 |
} |
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
.pos-3 { |
| 204 |
|
| 205 |
grid-area: 1 / 36 / 14 / 42; |
| 206 |
|
| 207 |
} |
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
.pos-4 { |
| 212 |
|
| 213 |
grid-area: 13 / 11 / 32 / 18; |
| 214 |
|
| 215 |
} |
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
.pos-5 { |
| 220 |
|
| 221 |
grid-area: 17 / 32 / 32 / 38; |
| 222 |
|
| 223 |
} |
| 224 |
|
| 225 |
|
| 226 |
|
| 227 |
.pos-6 { |
| 228 |
|
| 229 |
grid-area: 20 / 46 / 28 / 51; |
| 230 |
|
| 231 |
} |
| 232 |
|
| 233 |
|
| 234 |
|
| 235 |
.pos-7 { |
| 236 |
|
| 237 |
grid-area: 43 / 1 / 51 / 10; |
| 238 |
|
| 239 |
} |
| 240 |
|
| 241 |
|
| 242 |
|
| 243 |
.pos-8 { |
| 244 |
|
| 245 |
grid-area: 38 / 14 / 46 / 22; |
| 246 |
|
| 247 |
} |
| 248 |
|
| 249 |
|
| 250 |
|
| 251 |
.pos-9 { |
| 252 |
|
| 253 |
grid-area: 40 / 26 / 51 / 32; |
| 254 |
|
| 255 |
} |
| 256 |
|
| 257 |
|
| 258 |
|
| 259 |
.pos-10 { |
| 260 |
|
| 261 |
grid-area: 37 / 39 / 48 / 47; |
| 262 |
|
| 263 |
} |
| 264 |
|
| 265 |
|
| 266 |
|
| 267 |
.grid-hover-motion-content .content__title { |
| 268 |
|
| 269 |
font-weight: 400; |
| 270 |
|
| 271 |
font-size: 5vw; |
| 272 |
|
| 273 |
margin: 0; |
| 274 |
|
| 275 |
line-height: 1; |
| 276 |
|
| 277 |
position: relative; |
| 278 |
|
| 279 |
text-align: center; |
| 280 |
|
| 281 |
height: 100%; |
| 282 |
|
| 283 |
display: grid; |
| 284 |
|
| 285 |
align-items: center; |
| 286 |
|
| 287 |
align-content: center; |
| 288 |
|
| 289 |
max-width: 100%; |
| 290 |
|
| 291 |
} |
| 292 |
|
| 293 |
|
| 294 |
|
| 295 |
.grid-hover-motion-content .content__title-sub { |
| 296 |
|
| 297 |
font-size: 2.5vw; |
| 298 |
|
| 299 |
display: block; |
| 300 |
|
| 301 |
line-height: 0.5; |
| 302 |
|
| 303 |
} |
| 304 |
|
| 305 |
|
| 306 |
|
| 307 |
@media screen and (min-width: 53em) { |
| 308 |
|
| 309 |
.grid-hover-motion-content { |
| 310 |
|
| 311 |
height: 100vh; |
| 312 |
|
| 313 |
justify-content: center; |
| 314 |
|
| 315 |
max-height: none; |
| 316 |
|
| 317 |
} |
| 318 |
|
| 319 |
} |
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
|