A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
feat: animate nav view opening/closing
thecodrr8dc80cc3293c
diff --git a/apps/web/src/app.js b/apps/web/src/app.jsindex e6e56ec29..57ef9e28d 100644--- a/apps/web/src/app.js+++ b/apps/web/src/app.js@@ -1,6 +1,7 @@import React, { useState, useEffect } from "react";import "./app.css";import Editor from "./components/editor";+import { motion } from "framer-motion";import { Flex, Box, Button, Text } from "rebass";import { ThemeProvider } from "./utils/theme";import RootNavigator, {@@ -198,20 +199,30 @@ function App() {</Flex>)}<Flex flex="1 1 auto" flexDirection="row" alignContent="stretch" px={0}>- <Flex- className="RootNavigator"- style={{- display: show ? "flex" : "none"+ <motion.div+ initial={{ width: "30%", opacity: 1, scaleY: 1 }}+ animate={{+ width: show ? "0%" : "30%",+ scaleY: show ? 0.8 : 1,+ opacity: show ? 0 : 1,+ zIndex: show ? -1 : 0}}- sx={{- borderRight: "1px solid",- borderColor: "border",- width: ["100%", "100%", "30%"]+ transition={{ duration: 0.3, ease: "easeOut" }}+ style={{+ display: "flex",+ flex: "1 1 auto"}}- flexDirection="column"- flex="1 1 auto"- //style={{ width: "362px" }}- />+ >+ <Flex+ className="RootNavigator"+ flex="1 1 auto"+ flexDirection="column"+ sx={{+ borderRight: "1px solid",+ borderColor: "border"+ }}+ />+ </motion.div><Editor /></Flex><Box id="dialogContainer" />