Browse Source

fade-element by content

master
farhan 4 months ago
parent
commit
737361e333

+ 2
- 1
resources/css/app.css View File

41
 }
41
 }
42
 .fade-element {
42
 .fade-element {
43
     opacity: 0;
43
     opacity: 0;
44
-    transition: opacity 3s ease-in-out;
44
+    transform: translateY(20px);
45
+    transition: opacity 3s ease-in-out, transform 3s ease-in-out;
45
 }
46
 }
46
 .fade-in {
47
 .fade-in {
47
     opacity: 1;
48
     opacity: 1;

+ 1
- 1
resources/views/components/countdown.blade.php View File

1
-<div class="flex flex-col gap-5 w-4/5 py-8">
1
+<div class="flex flex-col gap-5 w-4/5 py-8 fade-element">
2
     <hr class="border-t-1 border-gray-300 mt-3 mb-5 w-4/5 self-center">
2
     <hr class="border-t-1 border-gray-300 mt-3 mb-5 w-4/5 self-center">
3
     <h1 class="font-medium text-gray-600 self-center">Majlis Bermula</h1>
3
     <h1 class="font-medium text-gray-600 self-center">Majlis Bermula</h1>
4
     <div class="flex justify-center" id="countdown"></div>
4
     <div class="flex justify-center" id="countdown"></div>

+ 10
- 10
resources/views/components/event-info.blade.php View File

1
 <div class="flex flex-col gap-5 w-4/5 mt-10">
1
 <div class="flex flex-col gap-5 w-4/5 mt-10">
2
-    <div class="flex justify-center">
2
+    <div class="flex justify-center fade-element">
3
         <img src="{{ asset('assets/bismillah.png') }}" alt="Logo">
3
         <img src="{{ asset('assets/bismillah.png') }}" alt="Logo">
4
     </div>
4
     </div>
5
-    <div class="text-center">
5
+    <div class="text-center fade-element">
6
         <p class="font-medium text-sm text-gray-500 pb-3">Dengan penuh rasa kesyukuran, kami</p>
6
         <p class="font-medium text-sm text-gray-500 pb-3">Dengan penuh rasa kesyukuran, kami</p>
7
         <p class="font-medium text-gray-600">DATO' HAJI AMIRUDDIN BIN MOHD SAID</p>
7
         <p class="font-medium text-gray-600">DATO' HAJI AMIRUDDIN BIN MOHD SAID</p>
8
         <p class="font-medium text-gray-600">&</p>
8
         <p class="font-medium text-gray-600">&</p>
9
         <p class="font-medium text-gray-600">DATIN HAJAH NOR ALINA BINTI ALIAS</p>
9
         <p class="font-medium text-gray-600">DATIN HAJAH NOR ALINA BINTI ALIAS</p>
10
     </div>
10
     </div>
11
-    <div class="text-center">
11
+    <div class="text-center fade-element">
12
         <p class="font-medium text-sm text-gray-500">ingin mempersilakan</p>
12
         <p class="font-medium text-sm text-gray-500">ingin mempersilakan</p>
13
         <p class="font-medium text-sm text-gray-500">Tan Sri/Dato' Sri/Datin Sri/Dato'/</p>
13
         <p class="font-medium text-sm text-gray-500">Tan Sri/Dato' Sri/Datin Sri/Dato'/</p>
14
         <p class="font-medium text-sm text-gray-500">Datin/Tuan/Puan/Encik/Cik</p>
14
         <p class="font-medium text-sm text-gray-500">Datin/Tuan/Puan/Encik/Cik</p>
15
     </div>
15
     </div>
16
-    <div class="text-center">
16
+    <div class="text-center fade-element">
17
         <p class="font-medium text-sm text-gray-500 pb-3">Ke Majlis Resepsi Perkahwinan Putera Kami</p>
17
         <p class="font-medium text-sm text-gray-500 pb-3">Ke Majlis Resepsi Perkahwinan Putera Kami</p>
18
         <p class="font-medium text-gray-600">ALIFF BIN DATO' HAJI AMIRUDDIN</p>
18
         <p class="font-medium text-gray-600">ALIFF BIN DATO' HAJI AMIRUDDIN</p>
19
         <p class="font-medium text-gray-600">&</p>
19
         <p class="font-medium text-gray-600">&</p>
20
         <p class="font-medium text-gray-600">ANIZA AYUNA BINTI CHE JANI</p>
20
         <p class="font-medium text-gray-600">ANIZA AYUNA BINTI CHE JANI</p>
21
     </div>
21
     </div>
22
-    <hr class="border-t-1 border-gray-300 my-5 w-4/5 self-center">
23
-    <div class="text-center">
22
+    <hr class="border-t-1 border-gray-300 my-5 w-4/5 self-center fade-element">
23
+    <div class="text-center fade-element">
24
         <p class="font-medium text-gray-600 pb-2">Tarikh</p>
24
         <p class="font-medium text-gray-600 pb-2">Tarikh</p>
25
         <p class="font-medium text-sm text-gray-500">Sabtu, 17 Ogos 2024</p>
25
         <p class="font-medium text-sm text-gray-500">Sabtu, 17 Ogos 2024</p>
26
         <p class="font-medium text-sm text-gray-500">(12 Safar 1446H)</p>
26
         <p class="font-medium text-sm text-gray-500">(12 Safar 1446H)</p>
27
     </div>
27
     </div>
28
-    <div class="text-center">
28
+    <div class="text-center fade-element">
29
         <p class="font-medium text-gray-600 pb-2">Masa</p>
29
         <p class="font-medium text-gray-600 pb-2">Masa</p>
30
         <p class="font-medium text-sm text-gray-500">11.00 Pagi - 4.00 Petang</p>
30
         <p class="font-medium text-sm text-gray-500">11.00 Pagi - 4.00 Petang</p>
31
     </div>
31
     </div>
32
-    <div class="text-center">
32
+    <div class="text-center fade-element">
33
         <p class="font-medium text-gray-600 pb-2">Tempat</p>
33
         <p class="font-medium text-gray-600 pb-2">Tempat</p>
34
         <p class="font-medium text-sm text-gray-500">Dewan Jubli Perak</p>
34
         <p class="font-medium text-sm text-gray-500">Dewan Jubli Perak</p>
35
         <p class="font-medium text-sm text-gray-500">Sultan Haji Ahmad Shah,</p>
35
         <p class="font-medium text-sm text-gray-500">Sultan Haji Ahmad Shah,</p>
36
         <p class="font-medium text-sm text-gray-500">Jalan Teluk Sisek,</p>
36
         <p class="font-medium text-sm text-gray-500">Jalan Teluk Sisek,</p>
37
         <p class="font-medium text-sm text-gray-500">Kuantan, Pahang.</p>
37
         <p class="font-medium text-sm text-gray-500">Kuantan, Pahang.</p>
38
     </div>
38
     </div>
39
-    <hr class="border-t-1 border-gray-300 my-5 w-4/5 self-center">
40
-    <div class="text-center">
39
+    <hr class="border-t-1 border-gray-300 my-5 w-4/5 self-center fade-element">
40
+    <div class="text-center fade-element">
41
         <p class="font-medium text-gray-600 pb-2">Aturcara Majlis</p>
41
         <p class="font-medium text-gray-600 pb-2">Aturcara Majlis</p>
42
         <p class="font-medium text-sm text-gray-600">11.00 Pagi :</p>
42
         <p class="font-medium text-sm text-gray-600">11.00 Pagi :</p>
43
         <p class="font-medium text-sm text-gray-500 pb-4">Majlis Bermula</p>
43
         <p class="font-medium text-sm text-gray-500 pb-4">Majlis Bermula</p>

+ 3
- 3
resources/views/components/guestbook.blade.php View File

1
 <div class="flex flex-col gap-5 w-4/5">
1
 <div class="flex flex-col gap-5 w-4/5">
2
-    <div class="text-center pb-3">
2
+    <div class="text-center pb-3 fade-element">
3
         <p class="font-medium text-gray-600 pb-3">Ruangan Ucapan</p>
3
         <p class="font-medium text-gray-600 pb-3">Ruangan Ucapan</p>
4
         <p class="font-medium text-sm text-gray-600 italic">Ucapan kepada kedua mempelai</p>
4
         <p class="font-medium text-sm text-gray-600 italic">Ucapan kepada kedua mempelai</p>
5
         <p class="font-medium text-sm text-gray-600 italic">-Nama-</p>
5
         <p class="font-medium text-sm text-gray-600 italic">-Nama-</p>
6
     </div>
6
     </div>
7
-    <div class="text-center pb-2">
7
+    <div class="text-center pb-2 fade-element">
8
         <a onclick="guestbook.showModal()" class="rounded-full border-solid border-2 border-navbarcolor py-1 px-3 font-medium text-gray-600">
8
         <a onclick="guestbook.showModal()" class="rounded-full border-solid border-2 border-navbarcolor py-1 px-3 font-medium text-gray-600">
9
             <i class="fa-solid fa-pen-fancy"></i>
9
             <i class="fa-solid fa-pen-fancy"></i>
10
             <span>Ucapan</span>
10
             <span>Ucapan</span>
11
         </a>
11
         </a>
12
     </div>
12
     </div>
13
-    <hr class="border-t-1 border-gray-300 my-5 w-4/5 self-center">
13
+    <hr class="border-t-1 border-gray-300 my-5 w-4/5 self-center fade-element">
14
     @include('modals.guestbook-modal')
14
     @include('modals.guestbook-modal')
15
 </div>
15
 </div>

+ 4
- 4
resources/views/components/main-event.blade.php View File

1
 <div class="flex flex-col gap-5 w-4/5 mt-44 mb-40 text-navbarcolor">
1
 <div class="flex flex-col gap-5 w-4/5 mt-44 mb-40 text-navbarcolor">
2
-    <div class="flex justify-center">
2
+    <div class="flex justify-center fade-element">
3
         <p class="font-semibold text-sm">WALIMATULURUS</p>
3
         <p class="font-semibold text-sm">WALIMATULURUS</p>
4
     </div>
4
     </div>
5
-    <div class="flex flex-col gap-8 pt-8 pb-8 justify-center">
5
+    <div class="flex flex-col gap-8 pt-8 pb-8 justify-center fade-element">
6
         <div class="flex justify-center">
6
         <div class="flex justify-center">
7
             <p class="font-tan-pearl font-semibold text-5xl"><span class="text-6xl">A</span>liff</p>
7
             <p class="font-tan-pearl font-semibold text-5xl"><span class="text-6xl">A</span>liff</p>
8
         </div>
8
         </div>
13
             <p class="font-tan-pearl font-semibold text-5xl"><span class="text-6xl">A</span>yuna</p>
13
             <p class="font-tan-pearl font-semibold text-5xl"><span class="text-6xl">A</span>yuna</p>
14
         </div>
14
         </div>
15
     </div>
15
     </div>
16
-    <div class="flex flex-col justify-center">
16
+    <div class="flex flex-col justify-center fade-element">
17
         <div class="flex justify-center">
17
         <div class="flex justify-center">
18
             <p class="font-bold text-base">SABTU</p>
18
             <p class="font-bold text-base">SABTU</p>
19
         </div>
19
         </div>
21
             <p class="font-bold text-base">17 OGOS 2024</p>
21
             <p class="font-bold text-base">17 OGOS 2024</p>
22
         </div>
22
         </div>
23
     </div>
23
     </div>
24
-    <div class="flex flex-col justify-center">
24
+    <div class="flex flex-col justify-center fade-element">
25
         <div class="flex justify-center">
25
         <div class="flex justify-center">
26
             <p class="font-semibold text-sm">DEWAN JUBLI PERAK</p>
26
             <p class="font-semibold text-sm">DEWAN JUBLI PERAK</p>
27
         </div>
27
         </div>

+ 2
- 2
resources/views/components/prayer.blade.php View File

1
 <div class="flex flex-col gap-5 w-4/5">
1
 <div class="flex flex-col gap-5 w-4/5">
2
-    <div class="flex justify-center">
2
+    <div class="flex justify-center fade-element">
3
         <img src="{{ asset('assets/bismillah.png') }}" alt="Logo">
3
         <img src="{{ asset('assets/bismillah.png') }}" alt="Logo">
4
     </div>
4
     </div>
5
-    <div class="text-center">
5
+    <div class="text-center fade-element">
6
         <p class="font-medium text-sm text-gray-500 pb-1">Ya Allah, Ya Tuhan kami. Kami memohon restuMu</p>
6
         <p class="font-medium text-sm text-gray-500 pb-1">Ya Allah, Ya Tuhan kami. Kami memohon restuMu</p>
7
         <p class="font-medium text-sm text-gray-500 pb-1">berkatilah majlis kami ini dengan keberkatan dari</p>
7
         <p class="font-medium text-sm text-gray-500 pb-1">berkatilah majlis kami ini dengan keberkatan dari</p>
8
         <p class="font-medium text-sm text-gray-500 pb-1">permulaan hingga pengakhirannya. Sesungguhnya</p>
8
         <p class="font-medium text-sm text-gray-500 pb-1">permulaan hingga pengakhirannya. Sesungguhnya</p>

+ 2
- 4
resources/views/digital-card.blade.php View File

21
         <div class="petal-overlay" id="petalOverlay">
21
         <div class="petal-overlay" id="petalOverlay">
22
             <img src="{{ asset('assets/petal.gif') }}" alt="Falling Petals">
22
             <img src="{{ asset('assets/petal.gif') }}" alt="Falling Petals">
23
         </div>
23
         </div>
24
-    
25
         <audio id="player" loop>
24
         <audio id="player" loop>
26
             <source src="{{ asset('assets/background-musicv2.mp3') }}" type="audio/mp3">
25
             <source src="{{ asset('assets/background-musicv2.mp3') }}" type="audio/mp3">
27
         </audio>
26
         </audio>
28
         <div class="parent absolute h-screen w-full">
27
         <div class="parent absolute h-screen w-full">
29
-            {{-- <audio src="{{asset('assets/paper-ripping.mp3')}}"></audio> --}}
30
             @include('components.front-cover')
28
             @include('components.front-cover')
31
         </div>
29
         </div>
32
-        <div class="section bg-babyblue min-h-screen flex justify-center items-center pb-20 fade-element">
30
+        <div class="section bg-babyblue min-h-screen flex justify-center items-center pb-20">
33
             @include('components.main-event')
31
             @include('components.main-event')
34
         </div>
32
         </div>
35
-        <div class="section bg-babyblue min-h-screen flex justify-center pb-20 fade-element">
33
+        <div class="section bg-babyblue min-h-screen flex justify-center pb-20">
36
             @include('components.event-info')
34
             @include('components.event-info')
37
         </div>
35
         </div>
38
         <div class="section bg-babyblue flex justify-center pb-20 fade-element">
36
         <div class="section bg-babyblue flex justify-center pb-20 fade-element">

Loading…
Cancel
Save