Comments (4)
Hey @lougreenwood ,
Turns out @carlos-avila has submitted a custom mixin PR here: #27
If this is what you're looking for then I'd be happy to review it and merge it in (updating the docs also)
Let me know what you think.
from animate-sass.
I'd appreciate that.
from animate-sass.
Hi @lougreenwood,
Apologies for the delayed response.
That seems like a decent solution. I would just warn that by using mixins this way you're bloating your css output (always look at the output when using sass).
Let's say you end up using the mixin across 4 separate modules including the base .animate class.
Your output css is going to have 4 sets of the same css rules duplicated for each of those separate css classes.
I'm more a fan of using the modular class chaining approach in my markup but it's just that, a preference.
If you feel like this offers users of this library greater flexibility then I have no issue with you submitting a pull request with the proposed changes.
You can use the existing helpers/_mixins.scss file to declare the new mixin rule and just include it in the .animate class in _base.scss.
Thanks for your input :-)
from animate-sass.
hey @tgdev sorry for the even longer delayed response :)
I just took a look at the PR, it does look very useful, but for some of my use cases, I need to apply a different animation class on open close (pulse
open, fadeOut
closed). This PR won't work in that scenario because it seems that the class fadeOut
gets ignored, but that's no big deal.
I've added a single comment to the PR, just pointing out that base-duration is compatible with CSS custom properties (just like #34), otherwise looks good and useful for me.
Back to the main topic of this issue, I'm currently using a hacky homebrew mixin for setting the .animate
class, I'll try and clean it up and send a PR when I have some time.
Cheers!
from animate-sass.
Related Issues (20)
- Wrong variable name (wrong case) of $use-FadeIn in README.md HOT 2
- Cannot make it working
- gulp HOT 2
- Deprecation warnings with sass 3.4.11 HOT 2
- Remove -moz- and -o- vendor prefixes for keyframes HOT 2
- Zoom effects do not work HOT 1
- Readme is inaccurate; instructions are confusing HOT 3
- missing package.json
- $use-bounce issue HOT 1
- npm it? HOT 4
- on FadeInRight, FadeOutRight the effect is different from the original Animate.css HOT 2
- Use @extend instead of variable configuration HOT 1
- Can't use CSS custom properties for animation $base-duration HOT 1
- New release? HOT 1
- Problems "reusing and rewriting" some animate.scss classes
- Not work in Microsoft Edge
- security issues due to too old jquery version
- SASS build warning using / for division outside of calc HOT 1
- Please update it to animate.css v4.1.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from animate-sass.