Skip to content

Commit

Permalink
Adding nuxt-gsap
Browse files Browse the repository at this point in the history
  • Loading branch information
ramijames committed Jan 4, 2025
1 parent a0d98bb commit 3a6bc5c
Show file tree
Hide file tree
Showing 5 changed files with 464 additions and 324 deletions.
60 changes: 34 additions & 26 deletions components/v2/Hero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,29 @@
.hero-image {
position: relative;
width: 100%;
height: 100%;
.image-wrapper {
position: relative;
overflow: visible;
width: 100%;
height: 100%;
z-index: 1;
&:before {
content: '';
position: absolute;
top: 0px;
width: 100%;
height: 100%;
background: linear-gradient(115deg, $white, $mint-light ,$brand, $white);
background-size: 200% 200%;
animation: gradientGlow 12s infinite;
filter: blur(20px);
z-index: -1;
opacity: 0.25;
}
img {
width: 100%;
Expand All @@ -102,37 +121,26 @@
border-radius: $br-lg;
}
&:before {
content: '';
position: absolute;
top: 0px;
left: calc(50% - 200px);
width: 600px;
height: 600px;
border-radius: 50%;
background: $brand;
opacity: 0.5;
filter: blur(400px);
z-index: -1;
}
&:after {
content: '';
position: absolute;
top: 0px;
left: calc(50% - 400px);
width: 600px;
height: 600px;
border-radius: 50%;
background: $mint;
opacity: 0.5;
filter: blur(400px);
z-index: -1;
}
}
}
}
}
@keyframes gradientGlow {
0% {
opacity: 0.25;
background-position: 0% 50%;
}
50% {
opacity: 0.5;
background-position: 100% 50%;
}
100% {
opacity: 0.25;
background-position: 0% 50%;
}
}
</style>
1 change: 0 additions & 1 deletion layouts/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ main {
.dropdown-open #content {
filter: blur(10px);
transform: translateZ(-100px);
}
</style>
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default defineNuxtConfig({
}
},

modules: ['@nuxtjs/google-fonts', '@nuxt/content', 'nuxt-module-hotjar', '@pinia/nuxt', 'nuxt-gtag', '@nuxt/image'],
modules: ['@nuxtjs/google-fonts', '@nuxt/content', 'nuxt-module-hotjar', '@pinia/nuxt', 'nuxt-gtag', '@nuxt/image', 'v-gsap-nuxt'],

hotjar: {
hotjarId: 5129596,
Expand Down
Loading

0 comments on commit 3a6bc5c

Please sign in to comment.