Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

transformorigin gsap

tl.to(needle, 5, {rotation: 360, transformOrigin:"4px 12px"});
//I measured to where the center of the needle is and got the values from width:4px height: 12px for the transformOrigin
 
PREVIOUS NEXT
Tagged: #transformorigin #gsap
ADD COMMENT
Topic
Name
1+3 =