Capítulo 133 de 411

Chapter 133: gsap.utils.checkPrefix()

Core Idea

checkPrefix() returns the correctly browser-prefixed version of a CSS property name, or the original if no prefix is needed, or undefined if the property doesn't exist at all.

Reference Tables

ParameterTypeDescription
propertyStringproperty name to check, e.g. "filter"

Returns: String.

Code Examples

gsap.utils.checkPrefix("filter"); // "filter", "WebkitFilter", or "MozFilter" depending on the browser