add animations
Change-Id: I55d77e10e680d9d72f7fefd4a3e4e2b193fad11d
diff --git a/client/src/pages/accountSelection.jsx b/client/src/pages/accountSelection.jsx
index c95b02b..6c52af4 100644
--- a/client/src/pages/accountSelection.jsx
+++ b/client/src/pages/accountSelection.jsx
@@ -8,6 +8,12 @@
import ConversationAvatar from '../components/ConversationAvatar';
import { AddRounded } from '@material-ui/icons';
import { useHistory } from 'react-router';
+import { motion } from 'framer-motion';
+
+const variants = {
+ enter: { opacity: 1, y: 0 },
+ exit: { opacity: 0, y: "-50px" },
+}
const AccountSelection = (props) => {
const history = useHistory()
@@ -47,6 +53,7 @@
<React.Fragment>
<Header />
<Container maxWidth="sm" style={{paddingBottom:32}}>
+ <motion.div drag="x" initial="exit" animate="enter" exit="exit" variants={variants}>
<Card style={{marginTop:32, marginBottom:32}}>
<CardHeader title="Choose an account" />
<List>
@@ -61,6 +68,7 @@
primary="Create new account" />
</List>
</Card>
+ </motion.div>
</Container>
</React.Fragment>
)