Can't Risk Falling For You (Template)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
[nobr]
[class=container]
width: 320px;
height: 250px;
overflow: hidden;
margin: auto;
[/class]
[comment]-----------------background image (the one that moves when you hover over it)-----------------[/comment]
[class=image]
--url-for-bg-image: url('URL');
width: 320px;
height: 250px;
background: var(--url-for-bg-image);
background-size: 170%;
background-position: #% #%;
filter: brightness(110%) grayscale(70%);
box-sizing: border-box;
position: relative;
[/class]
[COMMENT]i have left it as "background-size: 170%;" but you may change this along with "filter: brightness(110%) grayscale(70%);" as you like[/COMMENT]
[class=color]
animation-name: {post_id}imagecolor;
animation-duration: 3s;
animation-fill-mode: forwards;
animation-timing-function: ease-out;
[/class]
[animation=imagecolor]
[keyframe=25]
filter: brightness(95%) grayscale(0%); background-size: 140%;
[/keyframe]
[keyframe=50]
filter: brightness(95%) grayscale(0%); background-size: 140%; background-position: #% #%;
[/keyframe]
[keyframe=100]
filter: brightness(95%) grayscale(0%); background-size: 140%; background-position: #% #%;
[/keyframe]
[/animation]
[COMMENT]you'll have to play around with the "background-position: #% -#%;" values here to see which ones work best for the background image you chose.
the values you input in "keyframe=50" should be different from "keyframe=100" i.e. mine were "50% -10%" and "100% -235%" respectively.
similarly, i've left it as "filter: brightness(95%) grayscale(0%);" and "background-size: 140%;" but you may change it as you please[/COMMENT]
[script class=image on=mouseenter]
addClass color image
addClass slidein picdiv
[/script]
[comment]-----------------sliding the box with pictures in-----------------[/comment]
[class=picdiv]
--colour-for-the-div-that-slides-in: rgba(#, #, #, 0.8);
position: relative;
width: 286px;
height: 62px;
background: var(--colour-for-the-div-that-slides-in);
transform: translate(320px, 38px);
display: flex;
justify-content: space-between;
align-content: space-between;
overflow: hidden;
box-sizing: border-box;
padding: 6px;
[/class]
[COMMENT]the the fourth value in the "rgba(#, #, #, 0.8);" defines opacity of your div. 1 means opaque and 0 means transparent. i have left it as 0.8 but you may change it as you wish[/COMMENT]
[class=slidein]
animation-name: {post_id}slideinpicdiv;
animation-duration: 2.25s;
animation-delay: 3.25s;
animation-fill-mode: forwards;
animation-timing-function: ease-out;[/class]
[animation=slideinpicdiv]
[keyframe=100]
transform: translate(17px, 38px);
[/keyframe]
[/animation]
[comment]-----------------pictures in the box that slid in-----------------[/comment]
[class name=pic1 state=hover]
opacity: 1;
[/class]
[class name=pic2 state=hover]
opacity: 1;
[/class]
[class name=pic3 state=hover]
opacity: 1;
[/class]
[class name=pic4 state=hover]
opacity: 1;
[/class]
[class name=pic6 state=hover]
opacity: 1;
[/class]
[class=pic1]
--1st-smol-pic: url('URL');
background: var(--1st-smol-pic);
width: 50px;
height: 50px;
background-size: #% | #px | COVER | ETC;
background-position: #% #% | #px #px | CENTER | ETC;
opacity: 0.8;
transition: all 1s;
cursor: pointer;
[/class]
[COMMENT]i know i have recommended "cover" as one of the "background-size" values but if you want the image to repeat when it elongates, i wouldn't recommend going with it; either "contain" or "#%" would work best[/COMMENT]
[class=pic2]
--2nd-smol-pic: url('URL');
background: var(--2nd-smol-pic);
width: 50px;
height: 50px;
background-size: #% | #px | COVER | ETC;
background-position: #% #% | #px #px | CENTER | ETC;
opacity: 0.8;
transition: all 1s;
cursor: pointer;
[/class]
[class=pic3]
--3rd-smol-pic: url('URL');
background: var(--3rd-smol-pic);
width: 50px;
height: 50px;
background-size: #% | #px | COVER | ETC;
background-position: #% #% | #px #px | CENTER | ETC;
opacity: 0.8;
transition: all 1s;
cursor: pointer;
[/class]
[class=pic4]
--4th-smol-pic: url('URL');
background: var(--4th-smol-pic);
width: 50px;
height: 50px;
background-size: #% | #px | COVER | ETC;
background-position: #% #% | #px #px | CENTER | ETC;
opacity: 0.8;
transition: all 1s;
cursor: pointer;
[/class]
[class=pic6]
--6th-smol-pic: url('URL');
background: var(--6th-smol-pic);
width: 50px;
height: 50px;
background-size: #% | #px | COVER | ETC;
background-position: #% #% | #px #px | CENTER | ETC;
opacity: 0.8;
transition: all 1s;
cursor: pointer;
[/class]
[comment]-----------------functions on the pictures (getting accordions to *open*)-----------------[/comment]
[script class=pic1 on=click]
hide pic2
hide pic3
hide pic4
hide pic6
addClass permspot picdiv
removeClass slidein picdiv
addClass incheight picdiv
fadeIn 800 hidden
fadeIn 900 scroll
fadeIn 1000 textbox
addClass activereturn home
removeClass permheight picdiv
removeClass decheight picdiv
removeClass tallpermsize pic1
removeClass decsize pic1
addClass smallpermsize pic1
addClass incsize pic1
[/script]
[script class=pic2 on=click]
hide pic1
hide pic3
hide pic4
hide pic6
addClass permspot picdiv
removeClass slidein picdiv
addClass incheight picdiv
fadeIn 800 hidden2
fadeIn 900 scroll2
fadeIn 1000 textbox2
addClass activereturn home
removeClass permheight picdiv
removeClass decheight picdiv
removeClass tallpermsize pic2
removeClass decsize pic2
addClass smallpermsize pic2
addClass incsize pic2
[/script]
[script class=pic3 on=click]
hide pic1
hide pic2
hide pic4
hide pic6
addClass permspot picdiv
removeClass slidein picdiv
addClass incheight picdiv
fadeIn 800 hidden3
fadeIn 900 scroll3
fadeIn 1000 textbox3
addClass activereturn home
removeClass permheight picdiv
removeClass decheight picdiv
removeClass tallpermsize pic3
removeClass decsize pic3
addClass smallpermsize pic3
addClass incsize pic3
[/script]
[script class=pic4 on=click]
hide pic1
hide pic2
hide pic3
hide pic6
addClass permspot picdiv
removeClass slidein picdiv
addClass incheight picdiv
fadeIn 800 hidden4
fadeIn 900 scroll4
fadeIn 1000 textbox4
addClass activereturn home
removeClass permheight picdiv
removeClass decheight picdiv
removeClass tallpermsize pic4
removeClass decsize pic4
addClass smallpermsize pic4
addClass incsize pic4
[/script]
[script class=pic6 on=click]
hide pic1
hide pic2
hide pic3
hide pic4
addClass permspot picdiv
removeClass slidein picdiv
addClass incheight picdiv
fadeIn 800 hidden6
fadeIn 900 scroll6
fadeIn 1000 textbox6
addClass activereturn home
removeClass permheight picdiv
removeClass decheight picdiv
removeClass tallpermsize pic6
removeClass decsize pic6
addClass smallpermsize pic6
addClass incsize pic6
[/script]
[comment]-----------------text boxes inside the accordions-----------------[/comment]
[class=hidden]
display: none;
width: 218px;
margin-left: 5px;
overflow: hidden;
[/class]
[class=scroll]
display: none;
width: 120%;
height: 166px;
overflow-Y: scroll;
overflow-X: hidden;
[/class]
[class=textbox]
box-sizing: border-box;
max-width: 218px;
display: none;
[/class]
[class=hidden2]
display: none;
width: 218px;
margin-left: 5px;
overflow: hidden;
[/class]
[class=scroll2]
display: none;
width: 120%;
height: 166px;
overflow-Y: scroll;
overflow-X: hidden;
[/class]
[class=textbox2]
box-sizing: border-box;
max-width: 218px;
display: none;
text-align: justify;
[/class]
[class=hidden3]
display: none;
width: 218px;
margin-left: 5px;
overflow: hidden;
[/class]
[class=scroll3]
display: none;
width: 120%;
height: 166px;
overflow-Y: scroll;
overflow-X: hidden;
[/class]
[class=textbox3]
box-sizing: border-box;
max-width: 218px;
display: none;
text-align: justify;
[/class]
[class=hidden4]
display: none;
width: 218px;
margin-left: 5px;
overflow: hidden;
[/class]
[class=scroll4]
display: none;
width: 120%;
height: 166px;
overflow-Y: scroll;
overflow-X: hidden;
[/class]
[class=textbox4]
box-sizing: border-box;
max-width: 218px;
display: none;
text-align: justify;
[/class]
[class=hidden6]
display: none;
width: 218px;
margin-left: 5px;
overflow: hidden;
[/class]
[class=scroll6]
display: none;
width: 120%;
height: 166px;
overflow-Y: scroll;
overflow-X: hidden;
[/class]
[class=textbox6]
box-sizing: border-box;
max-width: 218px;
display: none;
text-align: justify;
[/class]
[comment]-----------------holy shit okay these vvv are all the classes/scripts to get the accordion to open n close-----------------[/comment]
[class=permspot]
transform: translate(17px, 38px);
[/class]
[class=incheight]
animation-name: {post_id}picdivincheight;
animation-duration: 1s;
animation-delay: 0.5s;
animation-fill-mode: forwards;
animation-timing-function: ease-out;
[/class]
[animation=picdivincheight]
[keyframe=100]
height: 178px;
transform: translate(17px, 17px);
[/keyframe]
[/animation]
[class=incsize]
animation-name: {post_id}incsizepic;
animation-duration: 1s;
animation-delay: 0.5s;
animation-fill-mode: forwards;
animation-timing-function: ease-out;
[/class]
[animation=incsizepic]
[keyframe=100]
opacity: 1;
height: 166px;
width: 50px;
background-repeat: repeat;
cursor: auto;
[/keyframe]
[/animation]
[class=tallpermsize]
opacity: 1;
height: 166px;
width: 50px;
background-repeat: repeat;
cursor: auto;
[/class]
[class=decsize]
opacity: 0.8;
animation-name: {post_id}decsizepic;
animation-duration: 1s;
animation-delay: 0s;
animation-fill-mode: forwards;
animation-timing-function: ease-out;
[/class]
[animation=decsizepic]
[keyframe=100]
height: 50px;
width: 50px;
cursor: pointer;
[/keyframe]
[/animation]
[class name=decsize state=hover]
opacity: 1;
[/class]
[class=smallpermsize]
height: 50px;
[/class]
[class=permheight]
height: 178px;
transform: translate(17px, 17px);
[/class]
[class=decheight]
animation-name: {post_id}decheightpicdiv;
animation-duration: 1s;
animation-delay: 0s;
animation-fill-mode: forwards;
animation-timing-function: ease-out;
[/class]
[animation=decheightpicdiv]
[keyframe=100]
height: 62px;
transform: translate(17px, 38px);
[/keyframe]
[/animation]
[comment]-----------------function on the "back" button (getting accordions to *close*)-----------------[/comment]
[class=home]
opacity: 0;
height: 20px;
position: absolute;
top: 83%;
left: 8%;
background: transparent;
font-weight: bold;
line-height: 19px;
font-size: 17px;
text-transform: uppercase;
display: inline-block;
color: transparent;
transition: 1.5s all ease-out;
cursor: default;
[/class]
[COMMENT]i have my "back" button as transparent because it perfectly aligns with the "FOCUS ON ME" text, however, if you wish to make it visible, simply replace the "transparent" in "background: transparent;" with your desired colour.
similar, you can change the text colour (color: transparent;) from "transparent" to any colour of your choice as well if you wish for the text to be visible[/COMMENT]
[class=activereturn]
cursor: pointer; opacity: 0.8;
[/class]
[script class=home on=click]
removeClass activereturn home
addClass permheight picdiv
hide hidden
hide scroll
hide textbox
removeClass incsize pic1
addClass tallpermsize pic1
addClass decsize pic1
removeClass smallpermsize pic1
hide hidden2
hide scroll2
hide textbox2
removeClass incsize pic2
addClass tallpermsize pic2
addClass decsize pic2
removeClass smallpermsize pic2
hide hidden3
hide scroll3
hide textbox3
removeClass incsize pic3
addClass tallpermsize pic3
addClass decsize pic3
removeClass smallpermsize pic3
hide hidden4
hide scroll4
hide textbox4
removeClass incsize pic4
addClass tallpermsize pic4
addClass decsize pic4
removeClass smallpermsize pic4
hide hidden6
hide scroll6
hide textbox6
removeClass incsize pic6
addClass tallpermsize pic6
addClass decsize pic6
removeClass smallpermsize pic6
removeClass incheight picdiv
addClass decheight picdiv
fadeIn 900 pic1
fadeIn 900 pic2
fadeIn 900 pic3
fadeIn 900 pic4
fadeIn 900 pic6
[/script]
[comment]-----------------random ish-----------------[/comment]
[class=heading]
font-size: 12px;
line-height: 13px;
display: inline-block;
box-sizing: border-box;
padding: 0px 3px 3px 3px;
[/class]
[class=hdetails]
font-size: 12px;
line-height: 13px;
text-align: justify;
[/class]
[class=subheading]
font-size: 11px;
line-height: 12px;
display: inline-block;
box-sizing: border-box;
padding: 1px 2px 2px 3px;
margin-left: 5px;
[/class]
[class=sbdetails]
font-size: 11px;
line-height: 12px;
padding-left: 5px;
text-align: justify;
[/class]
[COMMENT]i explain more about these four ^^^ classes in the "text" spoiler[/COMMENT]
[comment]-----------------the acc code-----------------[/comment]
[div=width: 320px; text-align: right; margin: auto; font-size: 8px;]code by [USER=68743]@fudgecakez[/USER][/div]
[div class=container]
[div class=image]
[div class=picdiv]
[div class=pic1][/div]
[div class=pic2][/div]
[div class=pic3][/div]
[div class=pic4][/div]
[div class=pic6][/div]
[div class=hidden]
[div class=scroll]
[div class=textbox]
YOUR TEXT FOR 1ST DETAIL DIV HERE. DON'T FORGET TO ADD [br][/br] FOR LINE-BREAKS
[/div]
[/div]
[/div]
[div class=hidden2]
[div class=scroll2]
[div class=textbox2]
YOUR TEXT FOR 2ND DETAIL DIV HERE. DON'T FORGET TO ADD [br][/br] FOR LINE-BREAKS
[/div]
[/div]
[/div]
[div class=hidden3]
[div class=scroll3]
[div class=textbox3]
YOUR TEXT FOR 3RD DETAIL DIV HERE. DON'T FORGET TO ADD [br][/br] FOR LINE-BREAKS
[/div]
[/div]
[/div]
[div class=hidden4]
[div class=scroll4]
[div class=textbox4]
YOUR TEXT FOR 4TH DETAIL DIV HERE. DON'T FORGET TO ADD [br][/br] FOR LINE-BREAKS
[/div]
[/div]
[/div]
[div class=hidden6]
[div class=scroll6]
[div class=textbox6]
YOUR TEXT FOR 6TH DETAIL DIV HERE. DON'T FORGET TO ADD [br][/br] FOR LINE-BREAKS
[/div]
[/div]
[/div]
[/div]
[div class=home]
BACK
[/div]
[COMMENT]just because my text for the back/home button is "back", doesn't mean yours has to be too: change it up as you like ![/COMMENT]
[/div]
[/div]
[/nobr]