Skip to content

Commit

Permalink
Added -webkit-clip-path style to revealImage for support in safari (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
cqliu1 committed Jul 24, 2018
1 parent 86daf05 commit c691019
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/render_functions/reveal_image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const revealImage = () => ({
finish();
};
img.style.clipPath = getClipPath(config.percent, config.origin);
img.style['-webkit-clip-path'] = getClipPath(config.percent, config.origin);
img.src = isValid(config.image) ? config.image : elasticOutline;
handlers.onResize(img.onload);

Expand Down

0 comments on commit c691019

Please sign in to comment.