Ellylisa
Ellylisa

Reputation: 23

jquery slide menu over canvas element

I have a canvas where there is continues animation been generated.

I would like a jquery slidemenu going on top of the canvas.

The issues is that the javascript of the canvas keep on writing on top of the jquery slidemenu. How to solve this?

Any input would be very appreciated, many thanks.

Upvotes: 1

Views: 901

Answers (2)

jargalan
jargalan

Reputation: 5194

if you use z-index, you'd better change the position

how about

<div style="z-index: 2; position: relative;" id="menu">
.....
</div>

Upvotes: 2

Marko
Marko

Reputation: 72232

Without providing some code it's anyones guess.

Mine is that you need to set a higher z-index to the menu element.

<canvas style="z-index: 1" /> // I'm on bottom
<ul id="menu" style="z-index: 2">...</ul> // I'm on top

Upvotes: 1

Related Questions