Skip to content

Comments

Added mixin to customize pre-existing animations#27

Open
carlos-avila wants to merge 1 commit intotgdev:masterfrom
carlos-avila:feature/custom_anim_mixin
Open

Added mixin to customize pre-existing animations#27
carlos-avila wants to merge 1 commit intotgdev:masterfrom
carlos-avila:feature/custom_anim_mixin

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