Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS clip-path, perspective & transform: perspective unsupported #3152

Open
vayurobins opened this issue Mar 6, 2024 · 0 comments
Open

CSS clip-path, perspective & transform: perspective unsupported #3152

vayurobins opened this issue Mar 6, 2024 · 0 comments

Comments

@vayurobins
Copy link

Hi. I have an image I want need to look 3d'ish or kinda skewed. I have managed to get it perfectly with styles, but html2canvas cannot reproduce it. It seems that html2canvas does not support the following css styles:

clip-path
perspective
transform: perspective

html2canvas version: ^1.4.1.
Safari: 17.2.1
Chrome: 1.62.165
Firefox: 123.0.1
MacOS Sonoma 14.2.1.

This is the style I am using, that fails for html2canvas:
.image-container { clip-path: polygon(0% 18.5%, 98% 0%, 99% 97%, 2% 83%); perspective: 1000px; } .image{ transform: perspective(1000px) translate(-4%) scale(0.7) rotateY(-36deg) rotateX(-2deg) rotateZ(0deg); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant