3

Peoples saying that JQuery dies after Document.querySelector is gone, but, write the functions like `slideUp` or anything that manipulates styles too, is very non-productive.

Do you know another lib (small) that makes these functions created by JQuery?

Comments
  • 2
    @irene Nothing, querySelector is VanillaJS xD
  • 2
    @irene Oh! I wrote wrong
  • 1
    @irene

    change to ** arrived**
  • 1
    @irene

    TL;DR:

    JQuery lib is too large, totally unnecessary for projects actually.

    But, the functions like `slideUp` , `slideDown` of JQuery, is totally useful, so... I do not knows another lib that only has these function. Do you know ?
  • 1
  • 2
    you mean animations?
    web frameworks like react or vue have some competent animation docs

    anim. libraries? anime, velocity come to mind

    vanilla? css transitions

    you guys are confusing op a bit
  • 1
    @norman70688 Yep! But, functions that manipulate CSS to wrote is totally unproductive
  • 1
    @jesustricks Yep, css animations. But, for migration of project JQuery to Vanilla without re-wrote the animations of zero, maybe a small lib that makes this.
  • 1
    @norman70688 And the delay ?

    Like $('div').slideDown(300)
  • 1
    @norman70688 But, the same div has a delay of 200 when clicking on the button, has delay 500 when focused element. Wrote another CSS for it, is unproductive,

    To repeat, a lib specifies this, it would be useful.
  • 3
    Dude, just use CSS transitions. They are the most efficient way of doing it beside some JS libraries that focus on animations.
    Also, if you animate anything other than transforms or opacity you're throwing the speed benefit out the window anyway
  • 1
    @Froot
    .elem {
    filter: blur(0);
    transition; filter .4s ease;
    }

    .elem:hover {
    filter: blur(8px);
    }
  • 1
    @M1sf3t wow! Sound's good. I'll take a look
  • 1
  • 0
    @hack Hmmmm come to think of it I haven't looked into filters regarding the performance. Interesting 😋
Add Comment