Closed codytooker closed 8 years ago
@IanLunn Is this something you would be interested in. I think it makes this library much easier to use. Basically now the background animations and others can only be used as one color combo or size (depending on what animation it is) without some kind of edits.
for the sweep-to-top example above. Let's say my site has two types of buttons. primary and secondary. I want to use this same animation on each button but I want the hover states to be different colors. Currently I can't easily do that without making some kind of edit like I have mentioned above.
If this is something you would be interested in adding to the Sass version I would be more than happy to submit a pull requests.
I'm considering doing this in a future version. See duplicate: https://github.com/IanLunn/Hover/issues/67
I would like to suggest to you to add more variables to the sass version.
Currently this is the sweep-to-top mixin (similar to all the other background mixins)
I would like to suggest something like the following
The reason to make this useful is we can now easily do something like the following
We can go even further and do something like the following