Skip to content

Commit 2ee20ac

Browse files
committed
animation btn unitSwitch component
1 parent ad8b950 commit 2ee20ac

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/components/Header/Header.module.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
/* Pantallas medianas (tablets) */
1111
@media only screen and (min-width: 601px) and (max-width: 900px) {
1212
.wrapper{
13-
/* display: grid;
14-
grid-template-columns: 1fr 1fr;
15-
gap: 10px; */
13+
1614
}
1715
}
1816

@@ -22,7 +20,9 @@
2220
display: inline-flex;
2321
flex-direction: row;
2422
justify-content: space-around;
25-
height: 10%;
23+
align-items: center;
24+
height:auto;
2625
width: 100%;
26+
2727
}
2828
}

src/components/UnitSwitch/UnitSwitch.module.css

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
}
66

77
.btn{
8+
cursor:pointer;
89
background-color: rgba(223, 238, 238, 0.53);
910
border:none;
10-
transition: transform 500ms ease-in-out;
11+
transition: transform 500ms ease-in-out, color 0.3s ease;
1112
border-radius: 25px;
1213
padding: 0.6rem;
1314
font-size: 1rem;
@@ -21,13 +22,18 @@
2122
display: inline;
2223
margin: 0 0.5rem;
2324
}
25+
.switch:hover {
26+
transform: scale(1.05);
27+
}
2428

2529
.active{
2630
color: rgb(91, 146, 8);
31+
transform: scale(1.1);
2732
}
2833

2934
.inactive{
3035
color: rgba(104, 98, 31, 0.82);
36+
transform: scale(1);
3137
}
3238

3339
@media only screen and (min-width: 601px) and (max-width: 900px) {

0 commit comments

Comments
 (0)