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

Block Editor: Allow disabling moving animations #67808

Open
Pixelous opened this issue Dec 11, 2024 · 6 comments
Open

Block Editor: Allow disabling moving animations #67808

Pixelous opened this issue Dec 11, 2024 · 6 comments
Labels
Needs Technical Feedback Needs testing from a developer perspective. [Package] Block editor /packages/block-editor [Type] Enhancement A suggestion for improvement.

Comments

@Pixelous
Copy link

Pixelous commented Dec 11, 2024

Hi,

I made a copy of gallery block as a custom block to use it for a masonry layout https://masonry.desandro.com/

Before setting it up I was trying to disable moving images animation because masonry plugin uses its own animation based on absolute positioning.

What I have found so far useMovingAnimation function

function useMovingAnimation( { triggerAnimationOnChange, clientId } ) {
is responsible for animation.

It is possible somehow to disable the moving animation for a custom block?

Kind regards

@Mamaduka Mamaduka added the Needs Technical Feedback Needs testing from a developer perspective. label Dec 11, 2024
@Mamaduka
Copy link
Member

Hi, @Pixelous

Can you share a screencast to show which animations we are talking about?

Thanks

@Mamaduka Mamaduka added the [Package] Block editor /packages/block-editor label Dec 11, 2024
@Pixelous
Copy link
Author

@Mamaduka please see attached video:

Page-No-Title-.-Template-.-wordpress-local-.-Editor-.-WordPress.webm

It is translate3d

Kind regards

@Mamaduka
Copy link
Member

Thanks for the screencast, @Pixelous!

Currently, it's not possible to disable block movement animation.

Have you tried turning off animation for the Masonry library and using the ones provided by Block Editor?

@Mamaduka Mamaduka changed the title useMovingAnimation Block Editor: Allow disabling moving animations Dec 18, 2024
@Mamaduka Mamaduka added the [Type] Enhancement A suggestion for improvement. label Dec 18, 2024
@ellatrix
Copy link
Member

Is the video you shared the built-in one? Why is it not good?

@Pixelous
Copy link
Author

@Mamaduka ok, got it.

I have not installed the Masonry library yet, trying to learn React.

@Pixelous
Copy link
Author

@ellatrix sorry, not sure what you mean, built-in animation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Technical Feedback Needs testing from a developer perspective. [Package] Block editor /packages/block-editor [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants