Skip to content

Commit ff3b86b

Browse files
committed
fix hero on mobile and remove scrolling animations
1 parent 2992ba3 commit ff3b86b

2 files changed

Lines changed: 2 additions & 18 deletions

File tree

src/components/hero-section.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ export class HeroSection extends ScrollAnimationMixin(LitElement) {
128128
129129
.hero-portrait img {
130130
max-height: 50vh;
131-
object-position: center bottom;
131+
margin-left: 30%;
132+
object-position: right bottom;
132133
}
133134
}
134135

src/styles/shared.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -97,22 +97,5 @@ export const sharedStyles = css`
9797
}
9898
}
9999
100-
/* Scroll Animation Styles */
101-
.animate-on-scroll {
102-
opacity: 0;
103-
transform: translateY(30px);
104-
transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
105-
transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
106-
will-change: opacity, transform;
107-
}
108-
109-
.animate-on-scroll.visible {
110-
opacity: 1;
111-
transform: translateY(0);
112-
}
113100
114-
/* Staggered delays for children if needed */
115-
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
116-
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
117-
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
118101
`;

0 commit comments

Comments
 (0)