像 Netflix 封面图片一样的 CSS 转换 [英] CSS transform like netflix cover image

查看:30
本文介绍了像 Netflix 封面图片一样的 CSS 转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试转换一张看起来像来自 netflix 的图片:背景图片

I tried to transform an image that it looks like this image from netflix: background-image

transform: rotateY(-30deg) rotateX(30deg);
perspective: 800px;
transform-origin: 50% 0;

但是缺少一些东西......

But there is something missing ...

推荐答案

我认为这大概是你要找的,rotate3d() css 函数:

I think this is approximately what you're looking for, rotate3d() css function :

变换:rotate3d(1, 1, 1, 35deg);

这篇关于像 Netflix 封面图片一样的 CSS 转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆