Skip to content

Commit f475020

Browse files
committed
adjust learn more button
1 parent c9bccbd commit f475020

2 files changed

Lines changed: 77 additions & 1 deletion

File tree

css/style.css

Lines changed: 75 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,4 +382,78 @@ section h2 {
382382
section {
383383
padding: 2rem 0;
384384
}
385-
}
385+
}
386+
387+
/* From Uiverse.io by mrhyddenn */
388+
button {
389+
position: relative;
390+
padding: 10px 20px;
391+
border-radius: 7px;
392+
border: 1px solid rgb(61, 106, 255);
393+
font-size: 14px;
394+
text-transform: uppercase;
395+
font-weight: 600;
396+
letter-spacing: 2px;
397+
background: transparent;
398+
color: #fff;
399+
overflow: hidden;
400+
box-shadow: 0 0 0 0 transparent;
401+
-webkit-transition: all 0.2s ease-in;
402+
-moz-transition: all 0.2s ease-in;
403+
transition: all 0.2s ease-in;
404+
}
405+
406+
button:hover {
407+
background: rgb(61, 106, 255);
408+
box-shadow: 0 0 30px 5px rgba(0, 142, 236, 0.815);
409+
-webkit-transition: all 0.2s ease-out;
410+
-moz-transition: all 0.2s ease-out;
411+
transition: all 0.2s ease-out;
412+
}
413+
414+
button:hover::before {
415+
-webkit-animation: sh02 0.5s 0s linear;
416+
-moz-animation: sh02 0.5s 0s linear;
417+
animation: sh02 0.5s 0s linear;
418+
}
419+
420+
button::before {
421+
content: '';
422+
display: block;
423+
width: 0px;
424+
height: 86%;
425+
position: absolute;
426+
top: 7%;
427+
left: 0%;
428+
opacity: 0;
429+
background: #fff;
430+
box-shadow: 0 0 50px 30px #fff;
431+
-webkit-transform: skewX(-20deg);
432+
-moz-transform: skewX(-20deg);
433+
-ms-transform: skewX(-20deg);
434+
-o-transform: skewX(-20deg);
435+
transform: skewX(-20deg);
436+
}
437+
438+
@keyframes sh02 {
439+
from {
440+
opacity: 0;
441+
left: 0%;
442+
}
443+
444+
50% {
445+
opacity: 1;
446+
}
447+
448+
to {
449+
opacity: 0;
450+
left: 100%;
451+
}
452+
}
453+
454+
button:active {
455+
box-shadow: 0 0 0 0 transparent;
456+
-webkit-transition: box-shadow 0.2s ease-in;
457+
-moz-transition: box-shadow 0.2s ease-in;
458+
transition: box-shadow 0.2s ease-in;
459+
}

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ <h2 class="hero-title">
5454
<div class="hero-cta">
5555
<button class="btn btn-primary">Get Started</button>
5656
<button class="btn btn-secondary">Learn More</button>
57+
<!-- From Uiverse.io by mrhyddenn -->
58+
<button>Learn More</button>
5759
</div>
5860
</div>
5961
</section>

0 commit comments

Comments
 (0)