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

API: New #a.animated mixin definitions #36

Closed
codeworksdev opened this issue May 11, 2018 · 0 comments
Closed

API: New #a.animated mixin definitions #36

codeworksdev opened this issue May 11, 2018 · 0 comments

Comments

@codeworksdev
Copy link
Owner

codeworksdev commented May 11, 2018

New definitions were added to the #a.animated shorthand mixin to allow for better syntax when defining CSS animation properties.

DEFINITIONS (5)

Note: By default, the animation-fill-mode CSS property is set by the @o_animateless_fill variable. Of course, you can easily override this value with #a.fill, if necessary.

DEFINITION 1

#a.animated() {
    .fill(@o_animateless_fill);
    .duration(a, @o_animateless_duration);
    .delay(a, 0s);
    .iterate(1);
    }

DEFINITION 2

#a.animated(@name) {
    .fill(@o_animateless_fill);
    .duration(a, @o_animateless_duration);
    .delay(a, 0s);
    .iterate(1);
    .animation(@name);
    }

DEFINITION 3

#a.animated(@name; @duration) {
    .fill(@o_animateless_fill);
    .duration(a, @duration);
    .delay(a, 0s);
    .iterate(1);
    .animation(@name);
    }

DEFINITION 4

#a.animated(@name; @duration; @delay) {
    .fill(@o_animateless_fill);
    .duration(a, @duration);
    .delay(a, @delay);
    .iterate(1);
    .animation(@name);
    }

DEFINITION 5

#a.animated(@name; @duration; @delay; @iterations) {
    .fill(@o_animateless_fill);
    .duration(a, @duration);
    .delay(a, @delay);
    .iterate(@iterations);
    .animation(@name);
    }
@codeworksdev codeworksdev changed the title API: New initializers API: New #a.animated mixin definitions May 14, 2018
This was referenced May 14, 2018
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

1 participant