Skip to content

Commit

Permalink
Merge pull request #58 from TartejBrothers/Updates
Browse files Browse the repository at this point in the history
Updated: Animations
  • Loading branch information
TartejBrothers authored Jun 8, 2024
2 parents 0753a5a + ff99da4 commit 786b8fb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/components/expertisecomponent.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import React, { useEffect } from "react";
import "./styles/expertisecomponent.css";
const expertisecomponent = ({

const ExpertiseComponent = ({
imgname,
heading,
content,
Expand All @@ -9,6 +10,15 @@ const expertisecomponent = ({
list_elem_3,
number,
}) => {
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="expertisecomponent">
<div className="leftexpertiseheader">
Expand Down Expand Up @@ -36,4 +46,4 @@ const expertisecomponent = ({
);
};

export default expertisecomponent;
export default ExpertiseComponent;
4 changes: 4 additions & 0 deletions src/components/styles/expertisecomponent.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
}
100% {
max-height: 0;

font-size: 0px;
overflow: clip;
padding-bottom: 0px;
Expand Down Expand Up @@ -109,3 +110,6 @@
width: 100%;
}
}
body.safari .leftexpertisebody {
animation: none;
}

0 comments on commit 786b8fb

Please sign in to comment.