I modified the "import thing" to mixins.#4
Open
polikin wants to merge 36 commits intoadamstac:masterfrom
Open
Conversation
keep the original code into animations-imports
add animations type
Fix flipInX and flipInY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have a little problem with the original method for my own usage, so I decided to fixed it a little bit. Original code was made with import. I modified the "import thing" to mixins. Here's how it's work:
@import "animate/_shared";@import "animate/_animations";then
@include animations(fading-entrances);- entrances animations familyor
@include animations(fading-entrances/fadeInRight);- specific animationThe output will be the same. (prefix keyframes animations + animations class. Ex: .bounceIn)
If you want to keep the original code:
@import "animate/_shared";@import "animate/_animations-imports";Animations family
attention-seekersbouncing-entrancesbouncing-exitsfading-entrancesfading-exitsflippersrotating-entrancesrotating-exitsspecialsSingle animation
attention-seeker
attention-seekers/bounceattention-seekers/flashattention-seekers/pulseattention-seekers/shakeattention-seekers/swingattention-seekers/tadaattention-seekers/wobblebouncing-entrances
bouncing-entrances/bounceInbouncing-entrances/bounceInDownbouncing-entrances/bounceInLeftbouncing-entrances/bounceInRightbouncing-entrances/bounceInUpbouncing-exits
bouncing-exits/bounceOutbouncing-exits/bounceOutDownbouncing-exits/bounceOutLeftbouncing-exits/bounceOutRightbouncing-exits/bounceOutUpfading-entrances
fading-entrances/fadeInfading-entrances/fadeInDownfading-entrances/fadeInDownBigfading-entrances/fadeInLeftfading-entrances/fadeInLeftBigfading-entrances/fadeInRightfading-entrances/fadeInRightBigfading-entrances/fadeInUpfading-entrances/fadeInUpBigfading-exits
fading-exits/fadeOutfading-exits/fadeOutDownfading-exits/fadeOutDownBigfading-exits/fadeOutLeftfading-exits/fadeOutLeftBigfading-exits/fadeOutRightfading-exits/fadeOutRightBigfading-exits/fadeOutUpfading-exits/fadeOutUpBigflippers
flippers/flipflippers/flipInXflippers/flipInYflippers/flipOutXflippers/flipOutYrotating-entrances
rotating-entrances/rotateInrotating-entrances/rotateInDownLeftrotating-entrances/rotateInDownRightrotating-entrances/rotateInUpLeftrotating-entrances/rotateInUpRightrotating-exits
rotating-exits/rotateOutrotating-exits/rotateOutDownLeftrotating-exits/rotateOutDownRightrotating-exits/rotateOutUpLeftrotating-exits/rotateOutUpRightspecials
specials/hingespecials/rollInspecials/rollOut