-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -220,8 +220,6 @@ export default function VisualEditor( { styles } ) { | |
<AnimatePresence> | ||
<motion.div | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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, 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> | ||
{ ! isTemplateMode && ( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also remove this div and
AnimatePresence
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't they needed for the canvas to be able to animate when you shift viewports or go into template editing mode? This is the full context:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You removed the animation for that
motion.div
, so it won't do anything anymore.