Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
css变换,变换样式:preserve-3d在Firefox上不起作用_Css_Animation_Transform - Fatal编程技术网

css变换,变换样式:preserve-3d在Firefox上不起作用

css变换,变换样式:preserve-3d在Firefox上不起作用,css,animation,transform,Css,Animation,Transform,我正在尝试在一张卡片上添加一个悬停动画和卡片里面的其他东西,比如图片、标题或。。。 卡本身在js中有一个带有mouseMove事件的动画来旋转卡,并且 变换样式:在css中保留-3d 其中内容的悬停动画与js中的mouseEnter事件一起出现: container.addEventListener(“mouseenter”,()=>{ title.style.transform=translateZ(90px); desc.style.transform=translateZ(90px); p

我正在尝试在一张卡片上添加一个悬停动画和卡片里面的其他东西,比如图片、标题或。。。 卡本身在js中有一个带有mouseMove事件的动画来旋转卡,并且 变换样式:在css中保留-3d

其中内容的悬停动画与js中的mouseEnter事件一起出现:

container.addEventListener(“mouseenter”,()=>{ title.style.transform=
translateZ(90px)
; desc.style.transform=
translateZ(90px)
; profile.style.transform=
translateZ(90px)
; skills.style.transform=
translateZ(90px)
; hire.style.transform=
translateZ(90px)
; });

在edge或chrome上工作正常,但在firefox上工作不正常

请帮我做这个