Skip to content

Commit 3e177d0

Browse files
committed
menambahkan animasi
1 parent cf1d333 commit 3e177d0

File tree

1 file changed

+100
-0
lines changed

1 file changed

+100
-0
lines changed

styles.css

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,103 @@ nav ul li a {
4444
transition: 0.3s;
4545
}
4646

47+
nav ul li a:hover {
48+
background-color: #8f94fb;
49+
border-radius: 8px;
50+
}
51+
52+
/* Animasi */
53+
.fade-in {
54+
animation: fadeIn 2s ease-in;
55+
}
56+
57+
.slide-up {
58+
animation: slideUp 1s ease-in-out;
59+
}
60+
61+
@keyframes fadeIn {
62+
from { opacity: 0; }
63+
to { opacity: 1; }
64+
}
65+
66+
@keyframes slideUp {
67+
from { transform: translateY(50px); opacity: 0; }
68+
to { transform: translateY(0); opacity: 1; }
69+
}
70+
71+
/* Bagian Tentang Saya */
72+
#about {
73+
text-align: center;
74+
padding: 3rem 1rem;
75+
}
76+
77+
.project-image.small {
78+
width: 150px;
79+
border-radius: 50%;
80+
margin: 20px 0;
81+
}
82+
83+
/* Bagian Skill */
84+
#skills {
85+
text-align: center;
86+
padding: 3rem 1rem;
87+
}
88+
89+
.skill-container {
90+
display: flex;
91+
flex-wrap: wrap;
92+
justify-content: center;
93+
gap: 20px;
94+
margin-top: 20px;
95+
}
96+
97+
.skill-item {
98+
display: flex;
99+
flex-direction: column;
100+
align-items: center;
101+
max-width: 200px;
102+
padding: 15px;
103+
background: white;
104+
border-radius: 12px;
105+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
106+
transition: transform 0.3s;
107+
}
108+
109+
.skill-item img {
110+
width: 80px;
111+
height: 80px;
112+
object-fit: contain;
113+
}
114+
115+
.skill-item:hover {
116+
transform: translateY(-10px);
117+
}
118+
119+
/* Bagian Proyek */
120+
#projects {
121+
padding: 3rem 1rem;
122+
}
123+
124+
.project {
125+
text-align: center;
126+
margin-bottom: 2rem;
127+
}
128+
129+
.project img {
130+
width: 100%;
131+
max-width: 400px;
132+
border-radius: 12px;
133+
}
134+
135+
/* Bagian Kontak */
136+
#contact {
137+
text-align: center;
138+
padding: 3rem 1rem;
139+
background: #4e54c8;
140+
color: white;
141+
}
142+
143+
#contact p {
144+
margin: 10px 0;
145+
}
146+

0 commit comments

Comments
 (0)