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 transform: perspective #928

Open
Drons2p opened this issue Aug 27, 2016 · 7 comments
Open

CSS transform: perspective #928

Drons2p opened this issue Aug 27, 2016 · 7 comments
Labels

Comments

@Drons2p
Copy link

Drons2p commented Aug 27, 2016

Сan i save div with CSS transform: perspective?
I mean something like this:

  #div2 {
  background: linear-gradient(to right, rgba(248,80,50,1) 0%, rgba(241,111,92,1) 50%, rgba(246,41,12,1) 51%, rgba(240,47,23,1) 71%, rgba(231,56,39,1) 100%);

    width: 60px;
    height: 90px;
    transform: perspective(200px) rotateY(45deg);

 } 

or


  #div2 {
  background: linear-gradient(to right, rgba(248,80,50,1) 0%, rgba(241,111,92,1) 50%, rgba(246,41,12,1) 51%, rgba(240,47,23,1) 71%, rgba(231,56,39,1) 100%);

    width: 60px;
    height: 90px;       
    transform: matrix3d( 1, 0, 0, -0.008,
                       0, 1, 0, 0,
                       0, 0, 1, 0,
                       0, 0, 0.23, 1 );
 } 

2016-08-27 14 58 34

@thomasrye
Copy link

Everything I've read is saying that you cannot get 3d properties (perspective, rotateX, etc) in 2d context. 2d context only allows what matrix() has which is rotate, skew, scale, translate. I'm searching for ways to get matrix3d() or perspective to the canvas.

@Drons2p
Copy link
Author

Drons2p commented Jul 1, 2017

But canvas does not support 3d context now.
Is it so?

@thomasrye
Copy link

it is canvas.getContext('webgl') but there is a lot more involved to get css 3d properties to canvas

@bausk
Copy link

bausk commented Apr 18, 2018

Is there any chance this issue can be reopened?

@niklasvh niklasvh reopened this Apr 18, 2018
@rashn
Copy link

rashn commented Sep 26, 2020

Any news?

@jungwoolee-letsee
Copy link

any news? ㅠㅠ

@audas
Copy link

audas commented Nov 28, 2022

Any news?

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

No branches or pull requests

7 participants