There doesn't seem to be a way to provide a non-animated tour. Please provide one.

Steps:
1. Go to /admin/structure/views/view/content
2. Click tour
3. Click next

Actual result: Page automatically scrolls as it pops up the next step. There is no way for me to prevent the animation.

Expected result: I have a way to tell Drupal that I don't want it to animate scrolling. Page does not scroll. If the next tour bubble is off the screen an arrow appears to prompt me to scroll.

Technically, this preference belongs on my user page since I would want it to display that behavior site-wide. However, the tour module would need to recognize this setting.

I believe this technically is not required by WCAG 2.0 specs on animation. However, the current behavior would prevent me from taking tours.

Comments

nod_’s picture

Version: 8.0-alpha13 » 8.0.x-dev
nod_’s picture

Issue tags: +JavaScript

We're using joyride library because we don't want to have to support custom features. This would be a joyride library feature. It should be discussed with them upstream https://github.com/zurb/joyride

Also I don't the a11y problem (not saying there isn't one, I just don't understand it). From where I am, that kind of feature feel kinda overkill. It wouldn't be hard to make but it's still non-trivial to get right.

Charles Belov’s picture

It's kind of like motion sickness. I'll take it up with Joyride.

nod_’s picture

So while we can't add the arrow and all we can remove all the jQuery animations and have the page jump at the right place directly, is that any better?

To test, when you're on the page with the tour, before opening the tour, open the browser console (F12 usually) and enter:

jQuery.fx.off = true;

Then start the tour. Is this any better?

Charles Belov’s picture

Works great for me, thanks!

nod_’s picture

In your mind should drupal core offer a non-animated option on user profiles? or can that be in contrib?

Charles Belov’s picture

Trying to be rigorous here.

A user setting is not the only possible solution. Tour could instead have a "Disable animation" checkbox.

If using the user preference:

In my mind it would be part of core, just as the iPhone offers a "Minimize animation" setting in its native settings. The idea is that Drupal 8 will be accessible out of the box.

The other advantage of putting it in core - aside from Tour being accessible out of the box - would be that it would encourage contibs that utilize animation to query that setting and respect it. If Minimize Animation was in and of itself a contrib, that would greatly reduce the likelihood of other contribs querying it.

That said, I'm not sure how many contribs utilize animation.

A con of the user preference method is that it would not be able to support non-logged-in visitors who also need animation minimized (in frequency, that is, not in size). I'm assuming, of course, that Tour is not just for admins and other staff but can be utilized on our website.

If using a checkbox attached to the Tour itself:

The alternative to a user preference would be to have a "Disable animation" checkbox in Tour, which would help both logged in and non-logged-in visitors. In order to not be distracting during the tour, perhaps it would be attached to the Tour activation button and appear after clicking the Tour button.

If the checkbox were to auto-hide once the tour begins, then clicking the Tour button to make the check box reappear (if someone decides to get rid of the animation partway through the tour) would have to not restart the tour.

nod_’s picture

Thanks for the details.

I agree that a core setting would be best so that contrib can use it.

I opened up a meta issue to discuss all this. Please post anything you think is relevant to this matter in the meta issue so we have enough data to make an informed decision and make sure we're accessible to folks like yourself. I don't think this issue ever came up in core before so we're relying on you to help us get the informations we need to implement this properly.

Thanks!

mgifford’s picture

Version: 8.0.x-dev » 8.1.x-dev
Status: Active » Postponed

I'm assuming this should get bumped to 8.1.x.

nod_’s picture

Version: 8.1.x-dev » 8.0.x-dev

updated parent issue

mgifford’s picture

Status: Postponed » Active

Excellent.. Changing the status. Thanks @nod_

jhodgdon’s picture

Title: Allow non-animated tour » Tour does not support turning off animation
Category: Feature request » Bug report

This is not really a feature request, but an accessibility bug, right?

mgifford’s picture

Agreed.

mgifford’s picture

Version: 8.0.x-dev » 8.1.x-dev

Let's deal with this in 8.1.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.