Skip to content

Commit 0883240

Browse files
Fix lp hero pointer (#49)
* fixing LP * correct fix * fix pointerMove grid animation * remove unused custom element --------- Co-authored-by: bar-goldenberg <bargol@wix.com>
1 parent a8b9690 commit 0883240

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

assets/main.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,10 @@ const config = {
369369

370370
// Hero Grid Interaction
371371
{
372-
key: 'hero-grid',
372+
key: 'hero-section',
373373
trigger: 'pointerMove',
374-
params: { hitArea: 'root' },
375-
effects: [{ customEffect: rotateGridEffect, centeredToTarget: true }]
374+
params: { hitArea: 'self' },
375+
effects: [{ customEffect: rotateGridEffect, centeredToTarget: false }]
376376
},
377377

378378
// Hero Text

index.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,10 @@
6363
<!-- HERO SECTION -->
6464
<interact-element data-interact-key="hero-section">
6565
<header class="relative min-h-screen flex flex-col justify-center px-6 md:px-12 lg:px-24 pt-20 overflow-hidden bg-off-black">
66-
6766
<!-- INTERACTIVE GRID BACKGROUND -->
68-
<interact-element data-interact-key="hero-grid">
6967
<div id="grid-container" class="hero-grid-container absolute inset-0 w-full h-full z-0">
7068
<!-- Javascript will populate this -->
7169
</div>
72-
</interact-element>
73-
7470
<!-- HERO CONTENT -->
7571
<div class="max-w-[90vw] perspective-[1000px] relative z-20">
7672
<interact-element data-interact-key="hero-title" class="perspective-[2500px]">

0 commit comments

Comments
 (0)