Hover Animation with Marker

Animation On Marker

n = marker.nearestKey(time).index;
if (time < marker.key(n).time){
n = n-1;
}
if(n==0){
n = 1
}
t = time – marker.key(n).time;
thisProperty.valueAtTime(t)

Hover Mouse

point = thisComp.layer(“Click Control”).transform.position;
shape = thisComp.layer(“Box Shape”)
x = shape.sampleImage(point,[1,1])[3];
linear(x, 0, 1, 0, 100)