Skip to content

Commit d5c42d5

Browse files
committed
hover effect to website counters
1 parent e171444 commit d5c42d5

3 files changed

Lines changed: 330 additions & 486 deletions

File tree

assets/css/index.css

Lines changed: 38 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ body {
2020
background-color: #212121 !important;
2121
}
2222

23-
nav > * a,
24-
nav > * a:hover,
25-
footer > * a,
26-
footer > * a:hover {
23+
nav>* a,
24+
nav>* a:hover,
25+
footer>* a,
26+
footer>* a:hover {
2727
color: white !important;
2828
text-decoration: none;
2929
}
3030

31-
footer > * ul {
31+
footer>* ul {
3232
margin: 0;
3333
}
3434

@@ -61,11 +61,9 @@ a:hover {
6161

6262
.login__navbar {
6363
background-color: none;
64-
background-image: linear-gradient(
65-
180deg,
66-
rgba(40, 40, 40, 0.3),
67-
rgba(86, 86, 86, 0.3)
68-
);
64+
background-image: linear-gradient(180deg,
65+
rgba(40, 40, 40, 0.3),
66+
rgba(86, 86, 86, 0.3));
6967
}
7068

7169
.title__logo {
@@ -271,6 +269,7 @@ a:hover {
271269
-webkit-transform: translateY(-25%);
272270
transform: translateY(-25%);
273271
}
272+
274273
100% {
275274
-webkit-transform: translateY(0);
276275
transform: translateY(0);
@@ -282,6 +281,7 @@ a:hover {
282281
-webkit-transform: translateY(-25%);
283282
transform: translateY(-25%);
284283
}
284+
285285
100% {
286286
-webkit-transform: translateY(0);
287287
transform: translateY(0);
@@ -436,6 +436,7 @@ a:hover {
436436

437437
.link__buttons:hover {
438438
transform: scale(1.1);
439+
background-color: #4e9f6a;
439440
}
440441

441442
.icons {
@@ -552,6 +553,7 @@ a:hover {
552553
.count__box {
553554
width: 15rem;
554555
height: 15rem;
556+
margin-bottom: 1rem;
555557
display: flex;
556558
flex-direction: column;
557559
align-items: center;
@@ -560,19 +562,33 @@ a:hover {
560562
background-repeat: no-repeat;
561563
background-size: contain;
562564
background-position: center;
565+
transition: all 0.2s;
563566
}
564567

565-
.count__box > p:first-child {
568+
569+
570+
.count__box>p:first-child {
566571
font-size: 1.9rem;
567572
font-weight: 500;
568573
}
569574

570-
.count__box > p:last-child {
575+
.count__box>p:last-child {
571576
padding: 0.25rem 0;
572577
font-size: 0.8rem;
573578
}
574579

575-
#moosync__numbers__button {
580+
.count__box:hover {
581+
color: #FAF3E3;
582+
width: 16rem;
583+
margin-bottom: 0;
584+
background-image: url("../img/hexagon-hover.svg");
585+
height: 16rem;
586+
/* transition: all 0.2s; */
587+
transform: scale(1.04);
588+
}
589+
590+
591+
.count__box>#moosync__numbers__button {
576592
margin-top: 2rem;
577593
}
578594

@@ -650,6 +666,7 @@ a:hover {
650666
.info__text__3:hover #link__icon {
651667
transform: scale(1.25);
652668
}
669+
653670
#link__icon {
654671
height: 0.75rem;
655672
width: 0.75rem;
@@ -726,7 +743,7 @@ a:hover {
726743
}
727744

728745
.list-items-link:hover {
729-
color: #80ed99 !important;
746+
color: #80ed99 !important;
730747
}
731748

732749
#notice {
@@ -879,7 +896,7 @@ a:hover {
879896
padding: 0 1rem;
880897
align-items: center;
881898
justify-content: space-between;
882-
text-align:center;
899+
text-align: center;
883900
}
884901

885902
#left__footer__content {
@@ -1041,15 +1058,18 @@ a:hover {
10411058
width: 75vw;
10421059
}
10431060
}
1061+
10441062
.all_counts {
10451063
padding: 5rem 0;
10461064
background-color: #212121;
10471065
}
1066+
10481067
.count_matters_boxes {
10491068
padding-left: 12rem;
10501069
display: flex;
10511070
flex-direction: row;
10521071
}
1072+
10531073
.countimages {
10541074
height: 283px;
10551075
width: 283px;
@@ -1094,6 +1114,7 @@ a:hover {
10941114
.modal-content-text {
10951115
padding: 100px 20px 100px 20px;
10961116
}
1117+
10971118
#login-modal-platform-text-pre,
10981119
#login-modal-platform-text-post {
10991120
text-transform: capitalize;
@@ -1207,7 +1228,7 @@ a:hover {
12071228
opacity: 1;
12081229
}
12091230

1210-
.select__box .options__container.options__active + .selected::after {
1231+
.select__box .options__container.options__active+.selected::after {
12111232
transform: rotateX(180deg);
12121233
top: -6px;
12131234
}
@@ -1373,4 +1394,4 @@ li {
13731394

13741395
.arrow-li {
13751396
list-style-image: url("../img/ic_round-navigate-next.svg") !important;
1376-
}
1397+
}

assets/img/hexagon-hover.svg

Lines changed: 18 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)