简体   繁体   English

CSS过渡动画内容重叠

[英]CSS Transition Animation Content Overlapping

I would like to ask about, I have made some animation in my website named bubbles. 我想问一下,我在网站上制作了一些名为Bubble的动画。 Basically what it does is just to rotate and float some boxes within a given space in the defined content. 基本上,它只是在定义内容的给定空间内旋转和浮动一些盒子。 But i have a problem which is the animated content overlaps with the main content i wanted to display. 但是我有一个问题,那就是动画内容与我想显示的主要内容重叠。 For example I have <form> inputs but whenever the animation floats to the input boxes, the boxes is unclickable. 例如,我有<form>输入,但是每当动画浮动到输入框时,这些框都是不可单击的。 I would like to send those animation to the background so that it wont obstruct my main UI. 我想将这些动画发送到背景,以免干扰主UI。 How should i do that? 我该怎么办?

Here is the JSFiddle site to the sample code. 这是示例代码的JSFiddle站点。 You can try clicking on the input forms when the squares float on it. 您可以尝试在正方形浮动时单击输入表单。

Thank you 谢谢

Try adding the css-class: 尝试添加css类:

pointer-events:none;

To all of your animated items, that should do the trick. 对于所有动画项目,这都可以解决问题。

Set z-index of .bg-bubbles to -1 . .bg-bubbles z-index设置为-1 Cheers 干杯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM