You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for your library I use it on several projects, it is already a big improvement compare to the CSS version.
I would want to go further and be able to customize animation functions. (https://www.sitepoint.com/using-sass-maps/#module-configuration)
Something like this (not tested though):
// in animate.scss files@includekeyframes(fadeInRightBig, $options: ()) {
$configuration: map-merge((
tx: 2000px,
), $options);
0% {
opacity: 0;
@includetransform(translateX(map-get($configuration, tx)));
}
100% {
opacity: 1;
@includetransform(translateX(0));
}
}
// in user scss file.description {
@includefadeInRightBig($duration: 1s, /* any other params, then the options to be forward to the animation itself */$options: (tx: 100%));
}
For now I override the animation locally like the following but it feels wrong because it overrides the function for every later uses
Hi, thanks for your library I use it on several projects, it is already a big improvement compare to the CSS version.
I would want to go further and be able to customize animation functions. (https://www.sitepoint.com/using-sass-maps/#module-configuration)
Something like this (not tested though):
For now I override the animation locally like the following but it feels wrong because it overrides the function for every later uses
What do you think ?
The text was updated successfully, but these errors were encountered: