Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

🐛(frontend) fix broken animation when motion is reduced

lebaudantoine05b74365fa38
diff --git a/src/frontend/src/features/home/routes/Home.tsx b/src/frontend/src/features/home/routes/Home.tsx
index 813aea68..e6ebc812 100644
--- a/src/frontend/src/features/home/routes/Home.tsx
+++ b/src/frontend/src/features/home/routes/Home.tsx
@@ -32,8 +32,13 @@ const Columns = ({ children }: { children?: ReactNode }) => {
justifyContent: 'normal',
padding: '0 1rem',
width: 'calc(100% - 2rem)',
- opacity: 0,
- animation: '.5s ease-in fade 0s forwards',
+ '@media(prefers-reduced-motion: reduce)': {
+ opacity: 1,
+ },
+ '@media(prefers-reduced-motion: no-preference)': {
+ opacity: 0,
+ animation: '.5s ease-in fade 0s forwards',
+ },
lg: {
flexDirection: 'row',
justifyContent: 'center',