Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
锋子 committed Jan 24, 2023
1 parent ece22fd commit e646cd4
Showing 1 changed file with 53 additions and 2 deletions.
55 changes: 53 additions & 2 deletions src/views/Page1/Page1.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,39 +92,57 @@ const download = () => {
color: #fff;
font-size: 90px;
text-align: center;
animation: fadeIn 1s ease-in-out, translateUp 1s ease-in-out;
}
.main-text {
font-size: 20px;
color: #74727a;
margin-top: 20px;
animation: fadeIn 1s 0.5s ease-in-out both;
}
}
.button-section {
display: flex;
align-items: center;
justify-content: center;
margin-top: 80px;
margin-top: 160px;
animation: fadeIn 0.3s 1.8s ease-in-out both;
.download-button__base {
padding: 12px;
margin: 0 15px;
width: 200px;
height: 60px;
font-size: 18px;
display: flex;
color: #d7cfdb;
align-items: center;
justify-content: center;
background-color: #fff;
border-image: linear-gradient(315deg, #6772ff 0, #00f9e5 100%) 30 30 stretch;
background-image: linear-gradient(315deg, #a15f48, #b23a58, #fee7ef, #26152c, #d7cfdb);
background-size: 2000% 100%;
border-radius: 6px;
cursor: pointer;
animation: buttonBack 20s linear infinite;
}
}
@keyframes buttonBack {
0% {
background-position: 0;
}
50% {
background-position: 100%;
}
100% {
background-position: 0;
}
}
.example-section {
position: relative;
z-index: 1;
width: 300px;
margin-top: 200px;
animation: fadeIn 0.3s 1.5s linear both, translateLeft 0.3s 1.5s linear;
.example-img {
width: 100%;
}
Expand All @@ -143,4 +161,37 @@ const download = () => {
width: 100%;
}
}
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes fadeOut {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes translateDown {
0% {
transform: translateY(-50%);
}
100% {
transform: translateY(0%);
}
}
@keyframes translateLeft {
0% {
transform: translateX(100%);
}
100% {
transform: translateX(0%);
}
}
</style>

0 comments on commit e646cd4

Please sign in to comment.