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

Use static images for users that prefer "reduced motion" #340

Open
oskarrough opened this issue May 31, 2019 · 3 comments
Open

Use static images for users that prefer "reduced motion" #340

oskarrough opened this issue May 31, 2019 · 3 comments
Assignees

Comments

@oskarrough
Copy link
Member

The reduced-motion media query is something users can control on the OS-level. This article explains how to use it, like any other media query, inside the <picture> element to show a static image instead of a gif: http://bradfrost.com/blog/post/reducing-motion-with-the-picture-element/

This is pretty neat for performance and we already have the picture element in place in https://github.com/internet4000/radio4000/blob/master/app/components/channel-cover/template.hbs

@nellarro
Copy link

nellarro commented Oct 3, 2019

@oskarrough. I'd definitely love to take this on! Can you assign it to me?

@oskarrough
Copy link
Member Author

@nellarro with pleasure, thank you! Let us know if we can assist in any way.

The radio cards we have everywhere on the site is called channel-card. Inside it there is a channel-cover component, which contains all the responsive image logic. We'd have to implement the media query here. We already skip gifs for screens below 500px. Maybe modify this media query to include reduced motion as well?

@nellarro
Copy link

Thanks so much! I'll get to working on it ASAP :)

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

No branches or pull requests

2 participants