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 if statements to Animation Module loading. #27

Closed
wants to merge 1 commit into from

Conversation

terryupton
Copy link

Inspired by https://github.com/tgdev/animate-sass

The settings file also sets all animation modules to false (nothing gets loaded).

To include an animation module in your project, simply override the $use[moduleName] variable in your own settings file to true.

By only choosing the animation modules you need, you're keeping the compiled css at it's leanest!

Eg:
// These will be included
$use-fadeIn: true;
$use-fadeOut: true;

This means you can include the whole animate package as part of an existing project/build and override what is include in your own settings file.

Inspired by https://github.com/tgdev/animate-sass

The settings file also sets all animation modules to false (nothing gets loaded).

To include an animation module in your project, simply override the $use[moduleName] variable in your own settings file to true.

By only choosing the animation modules you need, you're keeping the compiled css at it's leanest!

Eg:
// These will be included
$use-fadeIn: true;
$use-fadeOut: true;

This means you can include the whole package as part of an existing build and override what is include in your own settings file.
@mattclements
Copy link

👍

@geoffgraham
Copy link
Owner

Thanks so much for doing this! I'm going to check it out when I can to make sure everything works smoothly. Love the approach you're suggesting here.

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.

3 participants