L
L
littleguga2015-04-01 03:02:21
css
littleguga, 2015-04-01 03:02:21

How to set z-index when animating?

There is a code .
How can I make the left block appear higher than the right one when scrolling?
(when twisted, the right block appears higher in the z-axis, even though it has z-index: 10 in css)
Thanks in advance for the answer!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
7
7rulnik, 2015-04-01
@littleguga

z-index only works on elements that have their position set to absolute, fixed, or relative.
Just add position: relative

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question