2 Replies Latest reply on Nov 11, 2014 9:54 AM by bjolet_

    Controlling CSS filters with javascript


      I know I came across a post in the past explaining how to retrieve CSS values with javascript, but I cannot find it now. It basically came down to something like this:




      I'm now trying to control CSS values and can reverse engineer this to control standard CSS values, but cannot figure out the proper structure for controlling CSS filters.




      This successfully changes the opacity to .5, but how would I control the invert property? Animate lists it as:


      CSS: filter: invert()


      As opposed to:


      style="opacity: .5;"