Giter Club home page Giter Club logo

Comments (4)

tgdev avatar tgdev commented on May 30, 2024 3

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.

dennis-f avatar dennis-f commented on May 30, 2024

I'd appreciate that.

from animate-sass.

tgdev avatar tgdev commented on May 30, 2024

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.

lougreenwood avatar lougreenwood commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.