Opened 12 years ago

Closed 7 years ago

Last modified 7 years ago

#4683 closed enhancement (wontfix)

Turn off all fx, animations.

Reported by: davidb Owned by: Bryan Forbes
Priority: high Milestone: future
Component: fx Version: 0.9
Keywords: Cc: Tom Trenka
Blocked By: Blocking:

Description (last modified by dante)

Do we want a way of skipping animations via a flag or something?

Or maybe niftier... perhaps a way of 'styling' animations, allowing customization through css?

Change History (12)

comment:1 Changed 12 years ago by guest

I second the second notion of customizing animations via css or something similar. Also a default set of animation properties (timeout etc...)

comment:2 Changed 12 years ago by Adam Peller

there are a couple of aspects to this... but I think one of them is a djConfig to just turn animations off for a11y. is that right, davidb?

comment:3 Changed 12 years ago by bill

Cc: Tom Trenka added

FYI, IIRC Tom has asked for this too, although I was thinking of a dijit flag, not changing the behavior of dojo.fx itself. But maybe that's a better idea. Tom said that the animations look cool but after a while some customers find them annoying, slowing down the app (or interaction with the app) unnecessarily.

comment:4 in reply to:  2 Changed 12 years ago by davidb

Replying to peller:

there are a couple of aspects to this... but I think one of them is a djConfig to just turn animations off for a11y. is that right, davidb?

Maybe. I'd prefer to see us allow settings based on preference or context as opposed to referring specifically to a11y. For example, I might not want animations on my phone (hypothetically).

comment:5 Changed 12 years ago by davidb

All this without added complexity and bloat would be the goal of course :)

comment:6 Changed 12 years ago by dante

djConfig = { fx:false } could make the default _Animation prototype's duration 1 or 0. we'd still have the overhead of making the animation, but wouldn't have to branch any code anywhere, and the styles would be calculated exactly as they would between start and end states, just realllly fast (1ms).

comment:7 Changed 11 years ago by dante

Milestone: 1.11.2

comment:8 Changed 11 years ago by dante

Description: modified (diff)
in dijit there is dijit.defaultDuration = djConfig.defaultDuration
200 ... setting djConfig = { defaultDuration:0 } should do this out of the box, and still allow for explicit duration setting.

comment:9 Changed 11 years ago by dylan

Milestone: 1.2future

comment:10 Changed 11 years ago by davidb

Let's keep an eye on a similar FF bug... we might be able to key off of a browser preference to turn off animations.

comment:11 Changed 7 years ago by Bryan Forbes

Resolution: wontfix
Status: newclosed

This should be a config flag in Dijit, not in the core of the toolkit.

comment:12 Changed 7 years ago by bill

Or maybe niftier... perhaps a way of 'styling' animations, allowing customization through css?

See #14251.

Note: See TracTickets for help on using tickets.