*,
*::before,
*::after {
padding
:
0px
;
margin
:
0px
;
box-sizing: inherit;
}
.container {
display
: flex;
justify-
content
:
center
;
align-items:
center
;
flex-
direction
: row;
height
:
88
vh;
}
.container button {
border
:
none
;
display
: flex;
justify-
content
:
center
;
align-items:
center
;
flex-
direction
: row;
box-sizing: border-box;
cursor
:
pointer
;
font-size
:
21px
;
font-weight
:
bold
;
letter-spacing
:
2px
;
width
:
200px
;
height
:
46px
;
background-color
:
#f3f3f3
;
color
:
black
;
font-family
:
"Cormorant"
,
"Garamond"
;
margin-left
:
23px
;
border-radius:
24px
;
}
.container .border_btn
1
{
width
:
200px
;
height
:
44px
;
padding
:
3px
;
border-radius:
41px
;
margin-left
:
21px
;
}
.container .border_btn
1
_animate {
background
: linear-gradient(
to
left
,
red
,
orange,
yellow,
green
,
blue
,
indigo,
violet
);
}
.container .container_button
1
,
.container .container_button
2
{
margin-left
:
0px
;
height
:
44px
;
display
: inline-
block
;
position
:
relative
;
}
.container .border_btn
2
{
width
:
200px
;
height
:
44px
;
padding
:
3px
;
border-radius:
41px
;
margin-left
:
21px
;
}
.container .border_btn
2
_animate {
background
: linear-gradient(
to
right
,
chartreuse,
#6161fd
,
#fd31fd
,
#ffb03a
,
red
);
}
.container .container_button
2
{
}
.btn
1
-hover:hover:before,
.btn
2
-hover:hover:before {
position
:
absolute
;
left
:
0px
;
top
:
0px
;
line-height
:
2.1
;
min-width
:
49px
;
font-size
:
100%
;
border-radius:
24px
;
background
: rgba(
0
,
0
,
0
,
0.1
);
}
.btn
1
-hover:hover:before,
.btn
2
-hover:hover:before {
content
:
url
(
""
);
}
.btn
1
-hover-animate:hover:before,
.btn
2
-hover-animate:hover:before {
transition: width
0.5
ms ease-in-out;
animation: change
1
s forwards
1
;
}
@keyframes change {
0%
{
width
:
1px
;
}
100%
{
width
:
200px
;
}
}