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

Add variables for transitions #21266

Closed
tomlutzenberger opened this issue Dec 1, 2016 · 4 comments
Closed

Add variables for transitions #21266

tomlutzenberger opened this issue Dec 1, 2016 · 4 comments

Comments

@tomlutzenberger
Copy link
Contributor

In order to standardize transitions it would be useful to add variables for transitions.
When looking at transition usage, I see that in most cases ease-in-out is used as timing-function and 0.2s / 0.6s as duration. These values could be transfered into variables.

Additionally, the mixin could be extended to provide those variables as default values if no parameters are given. So using @include transition(); could end up in transition: all 0.2s ease-in-out; after compiling.

I would be happy to make those changes and open a PR 😃

@tomlutzenberger
Copy link
Contributor Author

Any opinions on this, @mdo ?

@virgofx
Copy link

virgofx commented Dec 8, 2016

Also -- Can we add a variable for the input focus transition (for border and box shadow) in the [13. Forms] section. It's a pain to override the 0.15s in external CSS.

@guylepage3
Copy link

+1

An example of variables that we've implemented are;

$transitions-primary:        opacity .15s linear !default;
$transitions-secondary:      all .2s ease-in-out !default;

We are entering a new area of UX dominance where interactions are becoming more and more useful in a designer's tool belt. I feel this is a basic but decent start in for the Bootstrap framework.

@mdo mdo added this to the v4.0.0-alpha.6 milestone Dec 20, 2016
@mdo
Copy link
Member

mdo commented Dec 20, 2016

Fixed by #21345.

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

4 participants