Skip to content

Commit f9c1ab0

Browse files
committed
fix: adjust animations
1 parent aa3c0bb commit f9c1ab0

File tree

5 files changed

+27
-17
lines changed

5 files changed

+27
-17
lines changed

assets/styles/tailwind.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@
9898

9999
/* Button */
100100
.btn {
101-
@apply w-full py-sm px-md-alt cursor-pointer border-2 border-black-950 hover:shadow-none hover:translate-x-xs hover:translate-y-xs ease-[cubic-bezier(0.25,0.4,0.55,1.4)] duration-100;
101+
@apply w-full py-sm px-md-alt cursor-pointer border-2 border-black-950;
102102
}
103103
.btn-primary {
104-
@apply font-semibold rounded-full bg-wit-blue-500 hover:bg-wit-blue-400 text-black-950 focus:outline-none focus:ring focus:ring-wit-blue-500 focus:ring-opacity-80 shadow-[3px_7px_0px] shadow-black-950;
104+
@apply font-semibold rounded-full bg-wit-blue-500 hover:bg-wit-blue-400 text-black-950 focus:outline-none focus:ring focus:ring-wit-blue-500 focus:ring-opacity-80 shadow-[3px_7px_0px] shadow-black-950 hover:shadow-none hover:translate-x-xs hover:translate-y-xs ease-[cubic-bezier(0.25,0.4,0.55,1.4)] duration-75;
105105
}
106106
.btn-dark {
107-
@apply font-semibold rounded-full bg-white-50 hover:bg-white-100 text-black-950 focus:outline-none focus:ring focus:ring-wit-blue-500 focus:ring-opacity-80 shadow-[3px_7px_0px] shadow-wit-blue-500;
107+
@apply font-semibold rounded-full bg-white-50 hover:bg-white-100 text-black-950 focus:outline-none focus:ring focus:ring-wit-blue-500 focus:ring-opacity-80 shadow-[3px_7px_0px] shadow-wit-blue-500 hover:shadow-none hover:translate-x-xs hover:translate-y-xs ease-[cubic-bezier(0.25,0.4,0.55,1.4)] duration-75;
108108
}
109109
.btn-secondary {
110110
@apply font-semibold rounded-full bg-black-950 hover:bg-black-900 text-white-50 focus:outline-none focus:ring focus:ring-black-500 focus:ring-opacity-80 border-2 shadow-[3px_7px_0px] shadow-black-950;

components/sections/HeroSection.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
:center-left-content="false"
55
:content-classes="'p-[24px_100px] sm:p-[0px_32px] xs:p-[0px_16px]'"
66
:section-animation="false"
7-
:height="'h-lg-y-screen max-h-[900px]'"
7+
:height="'h-lg-y-screen max-h-[900px] md:max-h-[100vh]'"
88
>
99
<template #content>
1010
<div
@@ -14,41 +14,41 @@
1414
@mouseout="stopMoveAnimation"
1515
>
1616
<DottedBg
17-
class="absolute z-0 h-2-md-y-screen max-h-[700px] overflow-hidden"
17+
class="absolute z-0 h-2-md-y-screen max-h-[700px] md:max-h-full overflow-hidden"
1818
/>
1919
<div
2020
ref="plusIcon"
21-
class="animation1 absolute left-xl top-[450px] z-10 overflow-hidden sm:hidden lg:top-[280px] md:top-[550px] md:right-lg"
21+
class="animation1 absolute h-max w-max left-xl top-[450px] z-10 overflow-hidden sm:hidden lg:top-[280px] md:bottom-[30vh] md:top-auto md:right-md"
2222
>
2323
<Plus />
2424
</div>
2525
<div
2626
ref="zigzagIcon"
27-
class="animation1 absolute left-xl bottom-xl z-10 overflow-hidden sm:hidden md:bottom-sm"
27+
class="animation1 absolute left-xl bottom-xl z-10 overflow-hidden sm:hidden md:bottom-[15vh] md:left-[3vw]"
2828
>
2929
<Zigzag />
3030
</div>
3131
<div
3232
ref="squareIcon"
33-
class="animation1 absolute left-xl top-xl z-10 sm:hidden md:top-sm"
33+
class="animation1 absolute left-xl top-xl z-10 sm:hidden md:top-[8vh] md:left-[3vw]"
3434
>
3535
<SquareDots />
3636
</div>
3737
<div
3838
ref="plusIcon2"
39-
class="animation1 absolute right-xl top-[300px] z-10 overflow-hidden rotate-90 sm:hidden md:top-sm"
39+
class="animation1 absolute right-xl top-[300px] z-10 overflow-hidden rotate-90 sm:hidden md:top-[25vh] md:right-[3vw]"
4040
>
4141
<Plus />
4242
</div>
4343
<div
4444
ref="zigzagIcon2"
45-
class="animation1 absolute right-xl top-xl z-10 overflow-hidden rotate-90 sm:hidden md:top-sm"
45+
class="animation1 absolute right-xl top-xl z-10 overflow-hidden rotate-90 sm:hidden md:top-[8vh] md:right-[3vw]"
4646
>
4747
<Zigzag />
4848
</div>
4949
<div
5050
ref="squareIcon2"
51-
class="animation1 absolute right-xl bottom-xl z-10 sm:hidden md:bottom-sm"
51+
class="animation1 absolute right-xl bottom-xl z-10 sm:hidden md:bottom-[15vh]"
5252
>
5353
<SquareDots />
5454
</div>

components/sections/NewsletterSection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<RotateOnScroll
2323
section-id="newsletter"
2424
start-position="-=100% top"
25-
end-position="+=190%"
25+
end-position="+=100%"
2626
>
2727
<BlackStarIcon ref="blackStar" class="sm:hidden w-[460px] h-auto" />
2828
</RotateOnScroll>

layouts/default.vue

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@
1919
@mouseover="activateLink(link)"
2020
@mouseleave="clearActiveLinks"
2121
>
22-
<NavigationCursor
23-
v-if="link.active"
24-
class="w-sm h-auto absolute top-[16px] left-[4px]"
25-
/><span /><span class="slash text-wit-blue-500">/</span
22+
<Transition name="fade">
23+
<NavigationCursor
24+
v-if="link.active"
25+
class="w-sm h-auto absolute top-[16px] left-[4px]"
26+
/>
27+
</Transition>
28+
<span /><span class="slash text-wit-blue-500">/</span
2629
>{{ t(link.locale) }}
2730
</InnerLink>
2831
</template>
@@ -84,6 +87,13 @@ function clearActiveLinks() {
8487
</script>
8588

8689
<style lang="scss">
90+
.fade-enter-active {
91+
transition: opacity 0.3s;
92+
}
93+
.fade-enter-from {
94+
opacity: 0;
95+
}
96+
8797
.logo-link {
8898
a {
8999
text-decoration: none;

layouts/section.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div :class="`relative overflow-hidden`">
3-
<div id="animation-container" :class="`w-full ${frameClasses}`">
3+
<div id="animation-container" :class="`w-full h-full ${frameClasses}`">
44
<div
55
ref="content"
66
:class="`content p-[100px] m-[0_auto] max-w-[1100px] w-full sm:p-[70px_32px] xs:p-[70px_16px] z-50 ${height} ${contentClasses}`"

0 commit comments

Comments
 (0)