Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try: Remove opacity animation on canvas. #32266

Merged
merged 2 commits into from
May 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions packages/edit-post/src/components/visual-editor/index.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* External dependencies * External dependencies
*/ */
import classnames from 'classnames'; import classnames from 'classnames';
import { motion, AnimatePresence } from 'framer-motion'; import { motion } from 'framer-motion';


/** /**
* WordPress dependencies * WordPress dependencies
Expand Down Expand Up @@ -217,12 +217,6 @@ export default function VisualEditor( { styles } ) {
layout={ defaultLayout } layout={ defaultLayout }
/> />
) } ) }
<AnimatePresence>
<motion.div
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we had style targeting that div, specifically something about making it full height

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what the best way is to search for this. The wrapping container, .edit-post-visual-editor__content-area, only appears once, and does not appear to target any child divs.

It worked well in my testing, but I'll keep an eye on this and follow up on anything that needs it!

key={ isTemplateMode ? 'template' : 'post' }
initial={ { opacity: 0 } }
animate={ { opacity: 1 } }
>
<WritingFlow> <WritingFlow>
{ ! isTemplateMode && ( { ! isTemplateMode && (
<div className="edit-post-visual-editor__post-title-wrapper"> <div className="edit-post-visual-editor__post-title-wrapper">
Expand All @@ -245,8 +239,6 @@ export default function VisualEditor( { styles } ) {
/> />
</RecursionProvider> </RecursionProvider>
</WritingFlow> </WritingFlow>
</motion.div>
</AnimatePresence>
</MaybeIframe> </MaybeIframe>
</motion.div> </motion.div>
</motion.div> </motion.div>
Expand Down