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

Animations missing on iPhone/iOS since Bootstrap version 4.1 #27282

Closed
JulianZ98 opened this issue Sep 19, 2018 · 2 comments
Closed

Animations missing on iPhone/iOS since Bootstrap version 4.1 #27282

JulianZ98 opened this issue Sep 19, 2018 · 2 comments

Comments

@JulianZ98
Copy link

Since Bootstrap version 4.1 the animations are missing on my iPhone. I tested it on multiple devices with iOS (latest version, iOS 12) and different browsers (Safari and Chrome), but the animations are missing. Because of this, any modal opens without a fade effect (even though it has the "fade" class), the hamburger menu opens without a slide down effect and so on.

This happens not only on my websites, but also on all of the official examples like https://getbootstrap.com/docs/4.1/examples/carousel/ and when I change the CSS file back to version 4.0 (just CSS, not the JS file), everything works fine like it did before. In accordance with this, the v4.0 examples (e.g. https://getbootstrap.com/docs/4.0/examples/carousel/) are also working fine with all the animations on my iPhones. Only since v4.1 I encountered this problem with missing animations.

On my PC (Windows 10) all the animations are working fine when using the latest version 4.1.3, even when I resize the Chrome or Firefox window just like an iPhones screen size. Is this a known issue and is this an iOS problem? Unfortunately, I have no Android smartphones for a comparison.

@mdo
Copy link
Member

mdo commented Sep 20, 2018

This is because when reduce motion is enabled on the OS, animations are disabled.

@JulianZ98
Copy link
Author

This is because when reduce motion is enabled on the OS, animations are disabled.

Oh, thank you for the fast reply, that was indeed the "problem". I've enabled reduce motion for years now and I already forgot that there is an "prefers-reduced-motion" media query which respects this setting too. Now I saw that this "prefers-reduced-motion" media query was added to bootstrap in version 4.1 (#25641), that explains a lot, thanks.

I think I'll remove the "prefers-reduced-motion" lines from the CSS file or overwrite them, because I don't want to disable reduce motion on my devices because of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants