I have about 50 mixins, all generate certain things, however, I want to make one mixin, which calls any of them by a name, rather than making a giant chained if statement, I was wondering if there's a way to call a mixin by a name, example:
@mixin getKeyframes($name, $options) {
@include #{$name}($options);
}
Let's say I have a mixin called fadeIn
@mixin fadeIn($options) {
// Do something here
}
And Now I want to use the getKeyframes mixin to call fadeIn
@include getKeyFrames(fadeIn, true);
Something like that?