I used clip-path
property to clip picture, and I did this:
CSS:
-webkit-clip-path: polygon(40% 100%, 100% 100%, 100% 10%);
clip-path: polygon(40% 100%, 100% 100%, 100% 10%);
JS:
x.style.WebkitClipPath = 'polygon(0% 100%, 0 0, 80% 0)';
x.style.clipPath = 'polygon(0% 100%, 0 0, 80% 0)';
Result is that, transition and CSS propery works in chrome, firefox, opera.
But for safari, it works only CSS file, transition onmouseover
doesn't work.
I wouldn't ask If I have to, I spent 2-3 days to find a solution. Tnx in advance people.