removing pen and common function for that. keeping the original idea. working only on safari. chrome is changing the value but not refreshing the animation