<div id="box" class="box ml-[16px] mt-[16px] w-[50px] h-[50px] bg-blue-600 rounded-lg"></div>
gsap.registerPlugin({
name: 'myCustomProperty',
init(target, value) {
console.log(target, value)
}
})
gsap.to('.box', { x: 100, backgroundColor: 'red', rotate: 360 , duration: 3, myCustomProperty: 'test' })
This Pen doesn't use any external CSS resources.