Skip to content

Commit

Permalink
Merge pull request #62 from TartejBrothers/Updates
Browse files Browse the repository at this point in the history
Updated: Animations
  • Loading branch information
TartejBrothers authored Jun 15, 2024
2 parents 403dbad + 906dc1e commit 1eb61cf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@
z-index: 10;
margin-top: -80vh;
}
body.no-animation #testimonial {
animation: none;
margin-top: 0vh;
}
8 changes: 8 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ function App() {
window.removeEventListener("scroll", handleScroll);
};
}, []);
useEffect(() => {
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
const isIOS =
/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
if (isSafari || isIOS) {
document.body.classList.add("no-animation");
}
}, []);

return (
<div className="App">
Expand Down
1 change: 1 addition & 0 deletions src/components/styles/expertisecomponent.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,4 @@
body.no-animation .leftexpertisebody {
animation: none;
}

0 comments on commit 1eb61cf

Please sign in to comment.