Skip to content

Commit 7c3cc3f

Browse files
committed
video thumnail added
1 parent 4135608 commit 7c3cc3f

File tree

2 files changed

+32
-12
lines changed

2 files changed

+32
-12
lines changed

components/timeline.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ <h3>AI Software Developer - Captury GmbH</h3>
1212
<a href="https://youtu.be/p_7iE6UsSLM?si=i9vZnVBG1XIG_IQ0" target="_blank" class="video-thumbnail">
1313
<img src="https://img.youtube.com/vi/p_7iE6UsSLM/maxresdefault.jpg" alt="Project Video">
1414
<div class="play-overlay">
15-
<i class="fas fa-play"></i>
15+
<div class="overlay-content">
16+
<i class="fas fa-play"></i>
17+
<p class="video-description">My released work of hand tracking.</p>
18+
</div>
1619
</div>
1720
</a>
1821
<div class="timeline-item">

styles.css

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -516,36 +516,53 @@ body {
516516
left: 0;
517517
width: 100%;
518518
height: 100%;
519-
background-color: rgba(0, 0, 0, 0.4);
519+
background-color: rgba(0, 0, 0, 0.6);
520520
display: flex;
521521
align-items: center;
522522
justify-content: center;
523523
opacity: 0;
524524
transition: opacity 0.3s ease;
525525
}
526526

527+
.overlay-content {
528+
text-align: center;
529+
transform: translateY(20px);
530+
transition: transform 0.3s ease;
531+
}
532+
527533
.play-overlay i {
528534
color: white;
529535
font-size: 2rem;
530-
transform: scale(0.8);
531-
transition: transform 0.3s ease;
536+
margin-bottom: 1rem;
537+
display: block;
532538
}
533539

534-
.video-thumbnail:hover {
535-
transform: translateY(-3px);
536-
box-shadow: 0 4px 12px var(--shadow-color);
540+
.video-description {
541+
color: white;
542+
font-size: 1rem;
543+
margin: 0;
544+
padding: 0 1rem;
545+
font-weight: 500;
546+
opacity: 0;
547+
transform: translateY(10px);
548+
transition: opacity 0.3s ease, transform 0.3s ease;
537549
}
538550

539-
.video-thumbnail:hover img {
540-
transform: scale(1.03);
551+
.video-thumbnail:hover .play-overlay {
552+
opacity: 1;
541553
}
542554

543-
.video-thumbnail:hover .play-overlay {
555+
.video-thumbnail:hover .overlay-content {
556+
transform: translateY(0);
557+
}
558+
559+
.video-thumbnail:hover .video-description {
544560
opacity: 1;
561+
transform: translateY(0);
545562
}
546563

547-
.video-thumbnail:hover .play-overlay i {
548-
transform: scale(1);
564+
.video-thumbnail:hover img {
565+
transform: scale(1.03);
549566
}
550567

551568
/* Timeline Responsive */

0 commit comments

Comments
 (0)