Giter Site home page Giter Site logo

Comments (2)

kirbysayshi avatar kirbysayshi commented on July 23, 2024

Since you mentioned not wanting to do another iteration on that for ( fnName in data ) loop, some options:

  1. if it's the actual loop you're worried about and not the function calls in the loop, then you could change the storage format to an array of objects, each with value and name properties.
  2. if it's the function calls you want to limit, then a better way might be to plugin-ify (or use an existing one: https://github.com/brandonaaron/jquery-cssHooks/blob/master/transform.js) the CSS hooks, and let them do their thing. Then, if you need to keep state internally, do so in a namespaced object in $(elem).data(), for example: $(elem).data('isotope').transform. Then you only need to loop through the properties you care about.

Also, regarding issue 2), I'm not sure this is possible without using JS. The transform css property doesn't properly cascade, so regardless if isotope is being used, setting

transform: rotate(30deg);

and later
transform: translate(20px, 30px);

in CSS will cause only the translation to be applied (I realize that you know this, I'm just outlining some of the issues). The short: I believe an all-in-one solution might be the only option.

from isotope.

desandro avatar desandro commented on July 23, 2024

In 3 years, only one other response, and it was 3 years ago. Closing as cancelled. Fair thee well #22

from isotope.

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.