Skip to content

Commit 3bcfe56

Browse files
authored
Fixed link animation
1 parent 6a21fdb commit 3bcfe56

2 files changed

Lines changed: 36 additions & 2 deletions

File tree

‎src/App.css‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,38 @@ body {
209209
--offset: 180px;
210210
}
211211

212+
.problems p a {
213+
display: inline-block;
214+
position: relative;
215+
text-decoration: none;
216+
color: inherit;
217+
margin: 0 var(--spacing, 0px);
218+
transition: margin 0.25s;
219+
}
220+
221+
.problems p a svg {
222+
width: 76px;
223+
height: 40px;
224+
position: absolute;
225+
left: 50%;
226+
bottom: 0;
227+
transform: translate(-50%, 7px) translateZ(0);
228+
fill: none;
229+
stroke: var(--stroke, #bbc1e1);
230+
stroke-linecap: round;
231+
stroke-width: 2px;
232+
stroke-dasharray: var(--offset, 69px) 278px;
233+
stroke-dashoffset: 361px;
234+
transition: stroke 0.25s ease var(--stroke-delay, 0s), stroke-dasharray 0.35s;
235+
}
236+
237+
.problems p a svg:hover {
238+
--spacing: 4px;
239+
--stroke: #7d41e7;
240+
--stroke-delay: 0.1s;
241+
--offset: 180px;
242+
}
243+
212244
.moon,
213245
.cube,
214246
.star-1,

‎src/App.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ function App() {
1515
<h1 className="title">#50DaysOfJavaScript</h1>
1616
<p className="description">
1717
A community-driven open-source initiative for elevating JavaScript
18-
skills through daily, practical <a href="https://github.com/vinitshahdeo/JavaScript-Coding-Interview-Questions/blob/main/README.md#list-of-questions" target="_blank" rel="noreferrer">coding challenges</a> tailored to
19-
real-world tasks, led by a supportive global community of developers.
18+
skills through daily, practical
19+
<span className='problems'>
20+
<a href="https://github.com/vinitshahdeo/JavaScript-Coding-Interview-Questions/blob/main/README.md#list-of-questions" target="_blank" rel="noreferrer">coding challenges</a>
21+
</span> tailored to real-world tasks, led by a supportive global community of developers.
2022
</p>
2123
<a
2224
href="https://github.com/vinitshahdeo/JavaScript-Coding-Interview-Questions/blob/main/50DaysOfJavaScript/README.md"

0 commit comments

Comments
 (0)