157 lines
3.8 KiB
Plaintext
157 lines
3.8 KiB
Plaintext
@keyframes ani {
|
|
from {
|
|
mask-position: 0 0;
|
|
}
|
|
to {
|
|
mask-position: 100% 0;
|
|
}
|
|
}
|
|
|
|
@keyframes ani2 {
|
|
from {
|
|
mask-position: 100% 0;
|
|
}
|
|
to {
|
|
mask-position: 0 0;
|
|
}
|
|
}
|
|
|
|
.buttonMask {
|
|
button {
|
|
width: 101%;
|
|
height: 100%;
|
|
font-family: 'Righteous', cursive;
|
|
font-weight: 300;
|
|
font-size: 20px;
|
|
letter-spacing: 1px;
|
|
cursor: pointer;
|
|
}
|
|
.mas {
|
|
margin-top: 12px;
|
|
position: absolute;
|
|
color: #000;
|
|
text-align: center;
|
|
width: 101%;
|
|
font-family: 'Righteous' sans-serif;
|
|
font-weight: 300;
|
|
font-size: 20px;
|
|
overflow: hidden;
|
|
}
|
|
.btn {
|
|
position: relative;
|
|
width: 100px;
|
|
height: 50px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
margin-top: 6vh;
|
|
overflow: hidden;
|
|
border: 1px solid ;
|
|
font-family: 'Righteous' sans-serif;
|
|
font-weight: 300;
|
|
font-size: 20px;
|
|
text-align: center;
|
|
transition: .5s;
|
|
letter-spacing: 1px;
|
|
}
|
|
.button-container-1 {
|
|
button {
|
|
background: #000;
|
|
mask: url('./img/button1.png');
|
|
mask-size: 2300% 100%;
|
|
border: none;
|
|
color: #fff;
|
|
-webkit-animation: ani2 .7s steps(22) forwards;
|
|
animation: ani2 .7s steps(22) forwards;
|
|
|
|
&:hover {
|
|
-webkit-animation: ani .7s steps(22) forwards;
|
|
animation: ani .7s steps(22) forwards;
|
|
}
|
|
}
|
|
}
|
|
.button-container-2 {
|
|
button {
|
|
background: #000;
|
|
mask: url('./img/button2.png');
|
|
mask-size: 3000% 100%;
|
|
border: none;
|
|
color: #fff;
|
|
-webkit-animation: ani2 .7s steps(29) forwards;
|
|
animation: ani2 .7s steps(29) forwards;
|
|
|
|
&:hover {
|
|
-webkit-animation: ani .7s steps(29) forwards;
|
|
animation: ani .7s steps(29) forwards;
|
|
}
|
|
}
|
|
}
|
|
.button-container-3 {
|
|
button {
|
|
background: #000;
|
|
mask: url('./img/button3.png');
|
|
mask-size: 7100% 100%;
|
|
border: none;
|
|
color: #fff;
|
|
-webkit-animation: ani2 0.7s steps(70) forwards;
|
|
animation: ani2 0.7s steps(70) forwards;
|
|
|
|
&:hover {
|
|
-webkit-animation: ani 0.7s steps(70) forwards;
|
|
animation: ani 0.7s steps(70) forwards;
|
|
}
|
|
}
|
|
}
|
|
.button-container-4 {
|
|
position: relative;
|
|
height: 45px;
|
|
width: 200px;
|
|
background: #fff;
|
|
color: #6cf;
|
|
text-align: center;
|
|
line-height: 45px;
|
|
-webkit-box-sizing:border-box;
|
|
box-sizing:border-box;
|
|
margin: 40px auto;
|
|
border: 1px solid #ccc;
|
|
cursor: pointer;
|
|
}
|
|
.button-container-4::before {
|
|
content: "";
|
|
position: absolute;
|
|
display: block;
|
|
width: 0;
|
|
height: 1px;
|
|
right: -2px;
|
|
top: -2px;
|
|
background-color: #6cf;
|
|
z-index: -1;
|
|
transition: width .4s linear, height .4s linear;
|
|
}
|
|
.button-container-4::after {
|
|
content: "";
|
|
position: absolute;
|
|
display: block;
|
|
width: 0;
|
|
height: 1px;
|
|
left: -2px;
|
|
bottom: -2px;
|
|
background-color: #6cf;
|
|
z-index: -1;
|
|
transition: width .4s linear, height .4s linear;
|
|
}
|
|
.button-container-4:hover {
|
|
&::before {
|
|
content: "";
|
|
transition: width .4s linear, height .4s linear;
|
|
width: 201px;
|
|
height: 46px;
|
|
}
|
|
&::after {
|
|
content: "";
|
|
transition: width .4s linear, height .4s linear;
|
|
width: 201px;
|
|
height: 46px;
|
|
}
|
|
}
|
|
|
|
} |