Categories

.hasSprite()

Categories: CSS

.hasSprite( [ name ] )

Subclass: ep

Plugin: ep.fn.sprite

Description: Determine whether the first of the matched elements are assigned spite icon classes.

  • .hasSprite( [ name ] )

    version added: 6.11.0

    name   A sprite icon name.

The .hasSprite() method determine whether the first of the matched elements are assigned the given sprite icon or spite icon classes in generell.

  • Determine whether the matched element has the arrow top-bottom icon.

    Code:
    ep('#icon').hasSprite('arrow-tb');