Skip to content

Commit 28a751a

Browse files
author
Asina7
committed
animation chnged
1 parent 5b8edac commit 28a751a

File tree

3 files changed

+58
-37
lines changed

3 files changed

+58
-37
lines changed

src/components/Home/MainSection/BrandSection.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div id="smooth-content">
55
<main>
66
<section class="brand__area">
7-
<div class="container pt-140 pb-140">
7+
<div class="container pt-140 pb-100">
88
<div class="row">
99
<div class="col-xxl-12">
1010
<h2 class="brand__title-3 title-anim brand-4">We Create Bussiness<br>just ask for these brands
@@ -30,15 +30,20 @@
3030
</div>
3131
</div>
3232
</div>
33+
3334
</div>
35+
36+
<google-review></google-review>
37+
3438
</div>
39+
3540
</section>
41+
42+
3643
</main>
3744
</div>
3845
</div>
39-
<section>
40-
<google-review></google-review>
41-
</section>
46+
4247
</div>
4348
</template>
4449

src/components/Home/MainSection/GoogleReview.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@
1010
<style scoped>
1111
.counter__img-3 img{
1212
width:18%;
13+
margin-top:80px;
14+
}
15+
@media screen and (max-width:768px){
16+
.counter__img-3 img{
17+
width:50%;
18+
margin-top:10px!important;
19+
}
20+
.counter__img-3 {
21+
margin-top: 10px;
22+
padding-left: 130px;
23+
}
1324
}
14-
1525
</style>

src/components/Home/MainSection/HeroSection.vue

Lines changed: 38 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@
1111
<!-- Main Title -->
1212
<div class="sec-title-wrapper ">
1313
<h2 class="sec-sub-title ">UAE #1</h2>
14-
<h3 class="sec-title main-titlee title-anim shin-anim">Digital Marketing Agency<br>
15-
Create Business Everyday</h3>
14+
<div class="title">
15+
<h3 class="sec-title main-titlee title-anim">Digital Marketing Agency</h3>
16+
<h3 class="sec-title main-titlee title-anim">Create Business Everyday</h3>
17+
</div>
18+
1619
</div>
1720

1821

1922
<!-- ends Title -->
2023
<div class="hero__text-3">
21-
<p class="animation__word_come">Static and dynamic secure code review can prevent a day before your
22-
product is even released. We
23-
can integrate with your dev environment</p>
24+
<p class="animation__word_come para-text">Static and dynamic secure code review can prevent a day before your
25+
product is even released. We can integrate with your dev environment</p>
2426
</div>
2527
<div class="scroll-down">
2628
<button><img src="@/assets/imgs/icon/arrow-down-sm.png" alt="arrow icon"></button>
@@ -118,41 +120,45 @@
118120
}
119121
/* text anim */
120122
121-
.shin-anim {
122-
color: hsl(0, 0%, 28%);
123-
font-size: 60px;
124-
font-weight: bold;
125-
font-family: monospace;
126-
letter-spacing: 7px;
127-
cursor: pointer;
128-
/* text-transform: uppercase; */
123+
124+
125+
.title {
126+
display: flex;
127+
flex-direction: column;
128+
align-items: center;
129+
}
130+
131+
.title h3 {
132+
font-size: 40px;
133+
text-align: center;
134+
opacity: 0;
135+
transform: translateX(100%);
136+
animation: title-animation 2s ease-in-out;
137+
animation-fill-mode: forwards;
129138
}
130139
131-
.shin-anim {
132-
/* padding: 64px; */
133-
background: linear-gradient(to right, hsl(0, 0%, 30%) 0, hsl(0, 0%, 100%) 10%, hsl(0, 0%, 30%) 20%, hsl(0, 0%, 30%) 0);
134-
-webkit-background-clip: text;
135-
-webkit-text-fill-color: transparent;
136-
animation: shine 4s infinite linear;
140+
.title h3:nth-child(2) {
141+
animation-delay: 2s;
137142
}
138143
139-
@keyframes shine {
144+
@keyframes title-animation {
140145
0% {
141-
background-position: 0;
146+
opacity: 0;
147+
transform: translateX(100%);
142148
}
143-
144-
60% {
145-
background-position: 600px;
146-
}
147-
148149
100% {
149-
background-position: 900px;
150+
opacity: 1;
151+
transform: translateX(0);
150152
}
151153
}
152-
@media screen and (max-width: 740px){
153-
.shin-anim{
154-
animation:none;
155-
-webkit-text-fill-color:rgb(67, 64, 64);
156-
}
154+
155+
.para-text{
156+
/* font-size:20px; */
157+
/* text-align:center; */
158+
opacity:0;
159+
transform: translateX(100%);
160+
animation: title-animation 2s ease-in-out;
161+
animation-fill-mode: forwards;
162+
animation-delay: 3s;
157163
}
158164
</style>

0 commit comments

Comments
 (0)