Giter Site home page Giter Site logo

Comments (6)

markmead avatar markmead commented on June 18, 2024 1

Hi @techwithshubh, thanks for the issue, do you have any proof of this?

By making this adjustment, we can significantly improve the efficiency of these components

Not just a StackOverflow post saying it is better, actual benchmarks and evidence that it is significantly better.


I was using specific transition classes for a while but opted for transition it usually has the property I want to transition, it's also not as lazy as doing transition-all.

from hyperui.

techwithshubh avatar techwithshubh commented on June 18, 2024

Hi @markmead, Thanks for the reply. I have done the performance analysis for one of the component in this page . Below are the results:

  1. When transition class is used
Screenshot 2024-01-07 at 7 20 50 PM
  1. When transition-colors is used
Screenshot 2024-01-07 at 7 21 52 PM
  1. When transition-[color,background-color] is used
Screenshot 2024-01-07 at 7 22 36 PM

Performance is not significantly affected, so instead of Bug, you can change the category to Nice to have feature.

from hyperui.

markmead avatar markmead commented on June 18, 2024

Thanks for this @techwithshubh! I think they are considerable improvements, would it be possible to get some more examples classes like transition-colors with transition-[background-color].

Be good to see if the performance improvements are worth it for the use of JIT classes. No need to get loads of examples (or any, if you don't feel like it).

from hyperui.

techwithshubh avatar techwithshubh commented on June 18, 2024

@markmead , These are the other predefined transition classes provided by tailwind. https://tailwindcss.com/docs/transition-property

from hyperui.

markmead avatar markmead commented on June 18, 2024

Yeah I know of their existence. I think based on your tests they should be used, but I'm interested in seeing how they compare with JIT classes.

from hyperui.

markmead avatar markmead commented on June 18, 2024

Going to leave this for now. I think it's fine as transition and it means users of these components are less likely to run into hover: effects not working.

from hyperui.

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.