Skip to content

Commit 59a39eb

Browse files
committed
fix: temporarily disable animation until performance problem fixed
1 parent 01fa7d0 commit 59a39eb

File tree

1 file changed

+15
-15
lines changed
  • packages/graphql-playground-react/src/components/Playground/TopBar

1 file changed

+15
-15
lines changed

packages/graphql-playground-react/src/components/Playground/TopBar/TopBar.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -257,22 +257,22 @@ const Pulse = styled.div`
257257
height: 16px;
258258
background-color: ${spinnerColor};
259259
border-radius: 100%;
260-
animation: ${bounceAnimation} 2s infinite ease-in-out;
261-
-webkit-animation: ${bounceAnimation} 2s infinite ease-in-out;
260+
/* animation: ${bounceAnimation} 2s infinite ease-in-out;
261+
-webkit-animation: ${bounceAnimation} 2s infinite ease-in-out; */
262262
`
263263

264-
const DelayedPulse = styled.div`
265-
width: 16px;
266-
height: 16px;
267-
position: absolute;
268-
top: 0;
269-
background-color: ${spinnerColor};
270-
border-radius: 100%;
271-
animation: ${bounceAnimation} 2s infinite ease-in-out;
272-
-webkit-animation: ${bounceAnimation} 2s infinite ease-in-out;
273-
animation-delay: -1s;
274-
-webkit-animation-delay: -1s;
275-
`
264+
// const DelayedPulse = styled.div`
265+
// width: 16px;
266+
// height: 16px;
267+
// position: absolute;
268+
// top: 0;
269+
// background-color: ${spinnerColor};
270+
// border-radius: 100%;
271+
// /* animation: ${bounceAnimation} 2s infinite ease-in-out;
272+
// -webkit-animation: ${bounceAnimation} 2s infinite ease-in-out;
273+
// animation-delay: -1s;
274+
// -webkit-animation-delay: -1s; */
275+
// `
276276

277277
const SpinnerWrapper = styled.div`
278278
position: relative;
@@ -282,6 +282,6 @@ const SpinnerWrapper = styled.div`
282282
const Spinner = () => (
283283
<SpinnerWrapper>
284284
<Pulse />
285-
<DelayedPulse />
285+
{/* <DelayedPulse /> */}
286286
</SpinnerWrapper>
287287
)

0 commit comments

Comments
 (0)