M
M
Maxim Nikulin2016-12-20 05:22:07
JavaScript
Maxim Nikulin, 2016-12-20 05:22:07

Why is the animation acting so weird?

Hello. I want to animate a product card using GSAP.
Working example:
codepen.io/MaxNikulin/pen/MbLbEO?editors=0010
But there is one bug, during the first rendering on hover, the length of the path is not correctly calculated.
How to fix this and what is the reason?
After all, the length of the paths is always the same.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Folg, 2016-12-20
@folgilya

Where is the problem? everything seems to be ok

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question