Skip to content

Commit

Permalink
chore(site): disable doc site animation on mobile devices
Browse files Browse the repository at this point in the history
Summary: disable the doc site home page's animation when it's running on mobile web browsers (screen is too small for such a complex animation)

Reviewed By: tulga1970

Differential Revision: D55033551

fbshipit-source-id: 7a1c0941cf6eb43800b1ad70c754372a311fd3b1
  • Loading branch information
JacksonGL authored and facebook-github-bot committed Apr 9, 2024
1 parent 5236059 commit 3b05576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ code {

#learn-more {
color: #323330;
backdrop-filter: blur(10px);
backdrop-filter: blur(4px);
}

#header-container {
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default function Home(): React.ReactElement {
const {width} = useWindowSize();

useEffect(() => {
if (!vantaEffect) {
if (!vantaEffect && width > 800) {
setVantaEffect(
NET({
el: headerRef.current,
Expand Down

0 comments on commit 3b05576

Please sign in to comment.