Added pulsing effect to timeline elements that are still in progress
This commit is contained in:
parent
2e07de0e71
commit
278fc640ce
27
src/app.html
27
src/app.html
@ -133,6 +133,33 @@
|
|||||||
.button:hover {
|
.button:hover {
|
||||||
box-shadow: .3em .3em .3em var(--header);
|
box-shadow: .3em .3em .3em var(--header);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes animationName {
|
||||||
|
0% { opacity:0; }
|
||||||
|
50% { opacity:1; }
|
||||||
|
100% { opacity:0; }
|
||||||
|
}
|
||||||
|
@-o-keyframes animationName{
|
||||||
|
0% { opacity:0; }
|
||||||
|
50% { opacity:1; }
|
||||||
|
100% { opacity:0; }
|
||||||
|
}
|
||||||
|
@-moz-keyframes animationName{
|
||||||
|
0% { opacity:0; }
|
||||||
|
50% { opacity:1; }
|
||||||
|
100% { opacity:0; }
|
||||||
|
}
|
||||||
|
@-webkit-keyframes animationName{
|
||||||
|
0% { opacity:0; }
|
||||||
|
50% { opacity:1; }
|
||||||
|
100% { opacity:0; }
|
||||||
|
}
|
||||||
|
.elementToFadeInAndOut {
|
||||||
|
-webkit-animation: animationName 1.5s infinite;
|
||||||
|
-moz-animation: animationName 1.5s infinite;
|
||||||
|
-o-animation: animationName 1.5s infinite;
|
||||||
|
animation: animationName 1.5s infinite;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body data-sveltekit-preload-data="hover">
|
<body data-sveltekit-preload-data="hover">
|
||||||
|
@ -24,7 +24,13 @@
|
|||||||
</TimelineOppositeContent>
|
</TimelineOppositeContent>
|
||||||
|
|
||||||
<TimelineSeparator>
|
<TimelineSeparator>
|
||||||
<TimelineDot style={`background-color: var(--link); border-color: var(--bg-grad);`} />
|
{#if item.duration.includes('Present') || !item.duration.includes('-')}
|
||||||
|
<div class="elementToFadeInAndOut">
|
||||||
|
<TimelineDot style={`background-color: var(--link); border-color: var(--bg-grad);`} />
|
||||||
|
</div>
|
||||||
|
{:else}
|
||||||
|
<TimelineDot style={`background-color: var(--link); border-color: var(--bg-grad);`} />
|
||||||
|
{/if}
|
||||||
<TimelineConnector />
|
<TimelineConnector />
|
||||||
</TimelineSeparator>
|
</TimelineSeparator>
|
||||||
<TimelineContent>
|
<TimelineContent>
|
||||||
|
Loading…
Reference in New Issue
Block a user