You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It could be less cumbersome to write the CSS transition-timing-function and animation-timing-function rules. A mixin could be handy, but it has to be straightforward and intuitive.
So, in order to generate one of these lines of CSS:
.my-class {
// using current easings.scss versiontransition-timing-function: $in-out-quad;
transition-timing-function: bezier(.455, .03, .515, .955);
// straightforward,but is it for animation-timing-function or transtition-timing-function?@includetiming('in-out-quad');
@includetiming(.455, .03, .515, .955);
// a bit longer, but still shorter and more explicit than previous proposal@includetransition-timing('in-out-quad');
@includetransition-timing(.455, .03, .515, .955);
// alternative, but less explicit about what it generates@includetransition-easing('in-out-quad');
@includetransition-easing(.455, .03, .515, .955);
}
It looks that for the easings already included in easings.scss, there’s no benefit. But for custom easing curves, it’s a 8 characters saving.
Waiting for feedbacks (and mine after using the library in real projects during a few months).
The text was updated successfully, but these errors were encountered:
It could be less cumbersome to write the CSS
transition-timing-function
andanimation-timing-function
rules. A mixin could be handy, but it has to be straightforward and intuitive.So, in order to generate one of these lines of CSS:
This SCSS could be written:
It looks that for the easings already included in easings.scss, there’s no benefit. But for custom easing curves, it’s a 8 characters saving.
Waiting for feedbacks (and mine after using the library in real projects during a few months).
The text was updated successfully, but these errors were encountered: