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

Custom values of prefixed props #2

Closed
Diokuz opened this issue Apr 13, 2013 · 1 comment
Closed

Custom values of prefixed props #2

Diokuz opened this issue Apr 13, 2013 · 1 comment

Comments

@Diokuz
Copy link

Diokuz commented Apr 13, 2013

I need, for some reasons, following css code:

.class {
    transition: all .1s;
    -o-transition: all .2s;
}

And I want to generate (with autoprefixer help) something like

.class {
    -webkit-transition: all .1s;
    transition: all .1s;
    -o-transition: all .2s;
}

but I got

.class {
    -o-transition: all .2s;
    -o-transition: all .1s;
    -webkit-transition: all .1s;
    transition: all .1s;
}

Is it possible to configure autoprefixer in such a way? i.e. I want the possibility to overwrite prefixed props by myself and place it after unprefixed prop.

@ai
Copy link
Member

ai commented Apr 13, 2013

Place prefixed properties before unprefixed in strongly recommended. But if you really need some of this hack, I recommend you to write:

.class {
    transition: all .1s;
}
.class {
    -o-transition: all .2s;
}

@ai ai closed this as completed Apr 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants