Cool Button.
#second_btn {
font-family: "Manrope", Sans-serif;
font-size: 14px;
font-weight: 600;
line-height: 24px;
letter-spacing: 0.5px;
position: relative;
display: inline-block;
cursor: pointer;
outline: none;
border: 0;
vertical-align: middle;
text-decoration: none;
background: transparent;
padding: 0;
}
#second_btn.learn-more {
width: 12rem;
height: auto;
}
#second_btn.learn-more .circle {
transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
position: relative;
display: block;
margin: 0;
width: 3rem;
height: 3rem;
background: #995BFC;
border-radius: 1.625rem;
}
#second_btn.learn-more .circle .icon {
transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
position: absolute;
top: 0;
bottom: 0;
margin: auto;
background: #fff;
}
#second_btn.learn-more .circle .icon.arrow {
transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
left: 0.625rem;
width: 1.125rem;
height: 0.125rem;
background: none;
}
#second_btn.learn-more .circle .icon.arrow::before {
transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
position: absolute;
content: "";
top: -0.24rem;
right: 0.0625rem;
width: 0.625rem;
height: 0.625rem;
border-top: 0.125rem solid #fff;
border-right: 0.125rem solid #fff;
}
#second_btn.learn-more .button-text {
transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
padding: 0.75rem 0;
margin: 0 0 0 1.85rem;
color: #995BFC;
line-height: 1.6;
text-align: center;
text-transform: uppercase;
}
#second_btn:hover .circle {
width: 100%;
}
#second_btn:hover .circle .icon.arrow {
background: #fff;
transform: translate(1rem, 0);
}
#second_btn:hover.learn-more .circle .icon.arrow::before{
transform: rotate(45deg);
}
#second_btn:hover .button-text {
color: #fff;
}
@media only screen and (max-width: 768px) {
#second_btn.learn-more:hover .circle .icon.arrow::before {
transform: rotate(40deg);
}
}
Grow- shrink section with GSAP .
Cool Scroll Bar .
body::-webkit-scrollbar {
width: 5px;
}
body::-webkit-scrollbar-track {
background:#F8F8F8;
}
body::-webkit-scrollbar-thumb {
border-radius: 0px;
background:#995BFC;
}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.