Replies: 1 comment 2 replies
-
You might want to run this through the Consonant team. Do we know if any other sites are asking for this? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Context: We are transpiling the marquee block in our AX migration to Milo. This is in effort to prevent prod breakage and reduce authors work load.
We are wondering if we could contribute a small feature our version of marquee (a small animation play/pause button) into Milo's marquee block. Please see the following screenshot for visuals:
A little more about the feature:
Sometimes our animations in the marquee can be with too much fast moving elements and/or flashy colors. In some cases this can cause discomfort to our visitors. This little play/pause button was implemented to mitigate this issue. This button will store the preference in the
localStorage('reduceMotion')
but will also try to align with user's device accessibility setting (media query) if a localStorage preference is not set.So, if the user has accessibility setting with reduce motion
toggled on && if the user hasn't previously toggled the animation on on the page, the animation will load paused. if the user changes the setting with the page up, the animation state will respond live.
Of course, this will only load for an marquee block instance with animation.
I was thinking this could be a variant (animation-toggle).
Please let me know your thoughts on this. Feel free to make suggestions on how we might be able to do this differently or if anything in the feature can be tweaked to better fit the Milo eco system. Thanks!
cc: @vhargrave
Beta Was this translation helpful? Give feedback.
All reactions