sirlancelot / sizzle-pseudos

A collection of cool custom pseudo selectors for jQuery & Sizzle.

Home Page:https://matpie.com/sizzle-pseudos/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jQuery/Sizzle Custom Pseudo Selectors

Just my collection of pseudos.

Performance

Take care about how many elements will be passed through these selectors as they will not be able to take advantage of the performance boost provided by the native DOM querySelectorAll() method. To achieve the best performance when using any of these pseudos, first narrow down your set using a native selector and then use .filter(":pseudo()").

Available Pseudos

  • :ancestor() - Selects elements with a common ancestor.
  • :in-viewport() - Selects elements which are within the current viewport.
  • :regexp() - Finds elements which have a property matching a given RegExp.

About

A collection of cool custom pseudo selectors for jQuery & Sizzle.

https://matpie.com/sizzle-pseudos/

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%