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

Added mixin to customize pre-existing animations #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

carlos-avila
Copy link

It allows to create one-off classes similar to .animate but with the ability to set durations, delay, etc.

@tgdev tgdev mentioned this pull request May 22, 2017
// Courtesy of @aviladotandres: (twitter.com) //
//===============================================================//
@mixin animate-custom( $name,
$duration:$base-duration,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this should be interpolated in use $base-duration is set using a CSS custom property.

e.g: $duration:#{$base-duration},

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

Successfully merging this pull request may close these issues.

2 participants