Skip to content

Commit 6f3a6a8

Browse files
author
Quique Fernandez
committed
update basket animations
1 parent bbef68c commit 6f3a6a8

3 files changed

Lines changed: 20 additions & 4 deletions

File tree

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
<div class="esh-basketstatus">
2-
<div class="esh-basketstatus-image"
3-
[routerLink]="['basket']">
1+
<a class="esh-basketstatus"
2+
[routerLink]="['basket']">
3+
4+
<div class="esh-basketstatus-image">
45
<img src="../../../images/cart.png" />
56
</div>
67
<div class="esh-basketstatus-badge">
78
{{badge}}
89
</div>
9-
</div>
10+
</a>

src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/basket/basket-status/basket-status.component.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
@import '../../_variables.scss';
22

33
.esh-basketstatus {
4+
cursor: pointer;
45
float: right;
56
position: relative;
7+
transition: all $animation-speed-default;
68

79
&-image {
810
height: 36px;
@@ -21,6 +23,13 @@
2123
text-align: center;
2224
top: 0;
2325
transform: translateX(-38%);
26+
transition: all $animation-speed-default;
2427
width: $size;
2528
}
29+
30+
&:hover &-badge {
31+
background-color: transparent;
32+
color: $color-secondary-dark;
33+
transition: all $animation-speed-default;
34+
}
2635
}

src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/basket/basket.component.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,11 @@
8686
padding: 1rem 1.5rem;
8787
text-align: center;
8888
text-transform: uppercase;
89+
transition: all $animation-speed-default;
90+
91+
&:hover {
92+
background-color: $color-secondary-darker;
93+
transition: all $animation-speed-default;
94+
}
8995
}
9096
}

0 commit comments

Comments
 (0)