Jump to content

GreenSock Docs


Returns : String

Returns the given property along with a browser prefix if one is necessary.

Give checkPrefix() any property name and it will return the appropriate, browser-prefixed version (if necessary) of that property. If a prefix is not needed, it will return the property name given. If the property does not exist, it will return undefined. For example:

  1. //the following may return "filter", "WebkitFilter", or "MozFilter" depending on your browser
  2. var filterProperty = gsap.utils.checkPrefix("filter");
Copyright 2017, GreenSock. All rights reserved. This work is subject to theterms of useor for Club GreenSock members, the software agreement that was issued with the membership.