How to change attribute using invoke method?

How to change attribute using invoke method ? like changing the property? Thanks. like element scroll?